Examples of PtrBuffer


Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

        contains(pb, 2, 4, 6, 8) ;
    }   

    @Test public void ptrbuffer06()
    {
        PtrBuffer pb = make(4,5) ;
        contains(pb, 2, 4, 6, 8) ;
        pb.shiftDown(2) ;
        contains(pb, 2, 4, 8) ;
        pb.shiftUp(2) ;
        assertTrue(pb.isClear(2)) ;
        contains(pb, 2, 4, -1, 8) ;
    }   
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

    }   

    // Shift RHS - out of bounds
    @Test public void ptrbuffer07()
    {
        PtrBuffer pb = make(4,5) ;
        contains(pb, 2, 4, 6, 8) ;
        pb.shiftUp(3) ;
        pb.set(3, 1) ;
        contains(pb, 2, 4, 6, 1, 8) ;
        pb.shiftDown(3) ;
        contains(pb, 2, 4, 6, 8) ;
    }   
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

        contains(pb, 2, 4, 6, 8) ;
    }   

    @Test public void ptrbuffer08()
    {
        PtrBuffer pb = make(4,5) ;
        contains(pb, 2, 4, 6, 8) ;
        pb.shiftDown(3) ;
        contains(pb, 2, 4, 6) ;
        pb.shiftUp(2) ;
        contains(pb, 2, 4, -1, 6) ;
    }   
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

    // Errors - IllegalArgumentException
    @Test(expected=BufferException.class)
    public void ptrbuffer09()
    {
        PtrBuffer pb = make(4,5) ;
        contains(pb, 2, 4, 6, 8) ;
        pb.shiftDown(4) ;
   
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

   
   
    @Test(expected=BufferException.class)
    public void ptrbuffer10()
    {
        PtrBuffer pb = make(4,5) ;
        contains(pb, 2, 4, 6, 8) ;
        pb.shiftUp(4) ;
   
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

   

    @Test(expected=BufferException.class)
    public void ptrbuffer11()
    {
        PtrBuffer pb = make(5,5) ;
        contains(pb, 2, 4, 6, 8, 10) ;
        pb.add(12) ;
   
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

   
   
    // Copy, duplicate, clear
    @Test public void ptrbuffer12()
    {
        PtrBuffer pb = make(5,5) ;
        contains(pb, 2, 4, 6, 8, 10) ;
        PtrBuffer pb2 = pb.duplicate() ;
        pb2.set(1, 99) ;
        contains(pb, 2, 4, 6, 8, 10) ;
        contains(pb2, 2, 99, 6, 8, 10) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

        contains(pb2, 2, 99, 6, 8, 10) ;
    }
   
    @Test public void ptrbuffer13()
    {
        PtrBuffer pb = make(5,5) ;
        contains(pb, 2, 4, 6, 8, 10) ;
        pb.clear(1, 3) ;
        contains(pb, 2, -1, -1, -1, 10) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

        contains(pb, 2, -1, -1, -1, 10) ;
    }
   
    @Test public void ptrbuffer14()
    {
        PtrBuffer pb = make(5,5) ;
        contains(pb, 2, 4, 6, 8, 10) ;
       
        PtrBuffer pb2 = make(5,5) ;
        contains(pb2, 2, 4, 6, 8, 10) ;
       
        pb.copy(0, pb2, 1, 4) ;
        contains(pb2, 2, 2, 4, 6, 8) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.buffer.PtrBuffer

    // Remove tests

    @Test public void ptrbuffer15()
    {
        PtrBuffer pb = make(5,5) ;
        contains(pb, 2, 4, 6, 8, 10) ;
        pb.removeTop() ;
        contains(pb, 2, 4, 6, 8) ;
        pb.remove(1) ;
        contains(pb, 2, 6, 8) ;
        pb.remove(2) ;
        contains(pb, 2, 6) ;
        pb.remove(0) ;
        contains(pb, 6) ;
        pb.remove(0) ;
        contains(pb) ;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.