Unit test for Insert.getNext(), inserting elements into an empty file
()
| 51 | * Unit test for Insert.getNext(), inserting elements into an empty file |
| 52 | */ |
| 53 | @Test public void getNext() throws Exception { |
| 54 | Insert op = new Insert(tid,scan1, empty.getId()); |
| 55 | op.open(); |
| 56 | assertTrue(TestUtil.compareTuples( |
| 57 | Utility.getHeapTuple(7, 1), // the length of scan1 |
| 58 | op.next())); |
| 59 | |
| 60 | // we should fit on one page |
| 61 | assertEquals(1, empty.numPages()); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * JUnit suite target |
nothing calls this directly
no test coverage detected