Search in sources :

Example 26 with PtrBuffer

use of org.apache.jena.tdb.base.buffer.PtrBuffer in project jena by apache.

the class TestPtrBuffer method ptrbuffer10.

@Test(expected = BufferException.class)
public void ptrbuffer10() {
    PtrBuffer pb = make(4, 5);
    contains(pb, 2, 4, 6, 8);
    pb.shiftUp(4);
}
Also used : PtrBuffer(org.apache.jena.tdb.base.buffer.PtrBuffer) BaseTest(org.apache.jena.atlas.junit.BaseTest) Test(org.junit.Test)

Example 27 with PtrBuffer

use of org.apache.jena.tdb.base.buffer.PtrBuffer in project jena by apache.

the class TestPtrBuffer method ptrbuffer01.

// Testing the test framework!
@Test
public void ptrbuffer01() {
    PtrBuffer pb = make(4);
    contains(pb, 2, 4, 6, 8);
}
Also used : PtrBuffer(org.apache.jena.tdb.base.buffer.PtrBuffer) BaseTest(org.apache.jena.atlas.junit.BaseTest) Test(org.junit.Test)

Aggregations

PtrBuffer (org.apache.jena.tdb.base.buffer.PtrBuffer)27 BaseTest (org.apache.jena.atlas.junit.BaseTest)23 Test (org.junit.Test)23 RecordBuffer (org.apache.jena.tdb.base.buffer.RecordBuffer)3 ByteBuffer (java.nio.ByteBuffer)2 Record (org.apache.jena.tdb.base.record.Record)1