Examples of debug_GetMark()


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

      assertEquals(0, data.readable());
     
      assertEquals(512, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      for (int i = 0; i < 8; i++) {
        data.write(1 - i % 2);
      }
     
View Full Code Here

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

      assertEquals(400, data.readable());
     
      assertEquals(50, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(400, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      for (int i = 0; i < 8; i++) {
        data.write(1 - i % 2);
      }
     
View Full Code Here

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

     
      data.skip(50);
     
      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());
View Full Code Here

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

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

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

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

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

      assertEquals(400, data.readable());
     
      assertEquals(50, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(400, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      assertEquals(0, data.pull());
      data.read();
      assertEquals(7, data.pull());
      assertEquals(0, data.pull());
View Full Code Here

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

      assertEquals(0, data.readable());
     
      assertEquals(512, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
     
      assertEquals(0, data.push(0));
      data.write(1);
      assertEquals(7, data.push(0));
      assertEquals(0, data.push(0));
View Full Code Here

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

      assertEquals(0, data.written());
     
      assertEquals(512, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
  }
 
  @Test
View Full Code Here

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

      assertEquals(0, data.written());
     
      assertEquals(1, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } finally {
    }
   
    try {
      Data data = new Data(0);
View Full Code Here

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

      assertEquals(0, data.written());
     
      assertEquals(0, data.debug_GetBuffer().length);
      assertEquals(0, data.debug_GetRead());
      assertEquals(0, data.debug_GetWrite());
      assertEquals(RT.EOF, data.debug_GetMark());
    } 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.