Unit test for BTreeFile.getId()
()
| 42 | * Unit test for BTreeFile.getId() |
| 43 | */ |
| 44 | @Test |
| 45 | public void getId() throws Exception { |
| 46 | int id = f.getId(); |
| 47 | |
| 48 | // NOTE(ghuo): the value could be anything. test determinism, at least. |
| 49 | assertEquals(id, f.getId()); |
| 50 | assertEquals(id, f.getId()); |
| 51 | |
| 52 | BTreeFile other = BTreeUtility.createRandomBTreeFile(1, 1, null, null, 0); |
| 53 | assertTrue(id != other.getId()); |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Unit test for BTreeFile.getTupleDesc() |
nothing calls this directly
no test coverage detected