Package etch.util.core.nio

Examples of etch.util.core.nio.ByteBufferPool.min()


  @Test
  public void construct7() throws Exception
  {
    ByteBufferPool p = new ByteBufferPool( 1, 2, 3, 4, 5 );
    assertEquals( 1, p.bufferSize() );
    assertEquals( 2, p.min() );
    assertEquals( 3, p.limit() );
    assertEquals( 4, p.interval() );
    assertEquals( 5, p.length() );
    p.shutdown();
  }
View Full Code Here


  @Test
  public void construct8() throws Exception
  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 107, 109 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 107, p.interval() );
    assertEquals( 109, p.length() );
    p.shutdown();
  }
View Full Code Here

  @Test
  public void construct9() throws Exception
  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 0, 109 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 0, p.interval() );
    assertEquals( 0, p.length() );
    p.shutdown();
  }
View Full Code Here

  @Test
  public void construct10() throws Exception
  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 107, 0 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 0, p.interval() );
    assertEquals( 0, p.length() );
    p.shutdown();
  }
View Full Code Here

  @Test
  public void construct11() throws Exception
  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 0, 0 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 0, p.interval() );
    assertEquals( 0, p.length() );
    p.shutdown();
  }
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.