Examples of peekFromEndWithOffset()


Examples of ch.inftec.ju.ee.test.sim.RequestHolder.peekFromEndWithOffset()

    String req1b = "req1b";

    rh.putRequest(String.class, req1a);
    rh.putRequest(String.class, req1b);

    Assert.assertEquals(req1b, rh.peekFromEndWithOffset(String.class, 0));
    Assert.assertEquals(req1a, rh.peekFromEndWithOffset(String.class, 1));
    Assert.assertEquals(2, rh.getRequestCount(String.class));
  }

  @Test
View Full Code Here

Examples of ch.inftec.ju.ee.test.sim.RequestHolder.peekFromEndWithOffset()

    rh.putRequest(String.class, req1a);
    rh.putRequest(String.class, req1b);

    Assert.assertEquals(req1b, rh.peekFromEndWithOffset(String.class, 0));
    Assert.assertEquals(req1a, rh.peekFromEndWithOffset(String.class, 1));
    Assert.assertEquals(2, rh.getRequestCount(String.class));
  }

  @Test
  public void peekFromEndWithOffset_returnsNull_forOutOfBoundsOffset() {
View Full Code Here

Examples of ch.inftec.ju.ee.test.sim.RequestHolder.peekFromEndWithOffset()

    String req1a = "req1a";

    rh.putRequest(String.class, req1a);

    Assert.assertNull(rh.peekFromEndWithOffset(String.class, 1));
    Assert.assertEquals(1, rh.getRequestCount(String.class));
  }
}
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.