Package com.peterhi.obsolete

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


     
      assertEquals(50, data.readable());
      assertEquals(350, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      assertEquals(true, data.reset());
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(-1, data.debug_GetMark());
     
View Full Code Here


     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(-1, data.debug_GetMark());
     
      assertEquals(false, data.reset());
     
      data.mark();
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
View Full Code Here

     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      assertEquals(true, data.reset());
    } finally {
    }
  }
 
  @Test
View Full Code Here

      });
      assertEquals(0, data.debug_GetRead());
      data.mark();
      assertEquals(1, data.read());
      assertEquals(1, data.debug_GetRead());
      data.reset();
      data.setPeek(true);
      assertEquals(1, data.read());
      assertEquals(0, data.debug_GetRead());
      data.setPeek(false);
      assertEquals(1, data.read());
View Full Code Here

     
      assertEquals(50, data.readable());
      assertEquals(350, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      assertEquals(true, data.reset());
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(-1, data.debug_GetMark());
     
View Full Code Here

     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(-1, data.debug_GetMark());
     
      assertEquals(false, data.reset());
     
      data.mark();
     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
View Full Code Here

     
      assertEquals(100, data.readable());
      assertEquals(300, data.debug_GetRead());
      assertEquals(300, data.debug_GetMark());
     
      assertEquals(true, data.reset());
    } finally {
    }
  }
 
  @Test
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.