Package com.peterhi.obsolete

Examples of com.peterhi.obsolete.Stream.readLine()


 
  @Test
  public void fReadLine_void() throws Exception {
    try {
      Stream stream = new Stream();
      stream.readLine();
      fail();
    } catch (EOFException ex) {
    }
   
    try {
View Full Code Here


    }
   
    try {
      Stream stream = new Stream();
      stream.writeBit(1);
      stream.readLine();
      fail();
    } catch (InsufficientBufferException ex) {
    }
   
    try {
View Full Code Here

      stream.writeBit(1);
     
      stream.readBit();
     
      for (int i = 0; i < 5; i++) {
        assertEquals(template, stream.readLine());
      }
     
      assertEquals("", stream.readLine());
      assertEquals(1, stream.getData().readable());
    } finally {
View Full Code Here

     
      for (int i = 0; i < 5; i++) {
        assertEquals(template, stream.readLine());
      }
     
      assertEquals("", stream.readLine());
      assertEquals(1, stream.getData().readable());
    } finally {
    }
  }
 
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.