Examples of peek2()


Examples of com.peterhi.obsolete.Data.peek2()

 
  @Test
  public void fPeek2_void() throws Exception {
    try {
      Data data = new Data(0);
      data.peek2();
      fail();
    } catch (EOFException ex) {
    } finally {
    }
  }
View Full Code Here

Examples of com.peterhi.obsolete.Data.peek2()

      Data data = new Data(new byte[] {
        Integer.valueOf("01010101", 2).byteValue()
      });
     
      assertEquals(0, data.debug_GetRead());
      boolean a = data.peek2();
      assertEquals(0, data.debug_GetRead());
      boolean b = data.read2();
      assertEquals(1, data.debug_GetRead());
      assertEquals(true, a);
      assertEquals(true, b);
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.