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