put
383940414243444546
public static TestSuite suite() { return new TestSuite( TestBufferPipe.class ); } public void testEmpty() { Pipe p = new BufferPipe(); p.close(); assertFalse( p.hasNext() ); }
454647484950515253545556
assertFalse( p.hasNext() ); } public void testNonEmpty() { Pipe p = new BufferPipe(); p.put( new Domain( 0 ) ); p.close(); assertTrue( p.hasNext() ); p.get(); assertFalse( p.hasNext() ); }
5556575859606162636465
assertFalse( p.hasNext() ); } public void testExceptions() { Pipe p = new BufferPipe(); JenaException bang = new JenaException( "bang" ); p.close( bang ); try { p.get(); fail( "bang disappeared" ); } catch (QueryStageException e) { pass(); } }