public TransportTestConnectSessionInitializer(int desiredCount) { latch = new CountDownLatch(desiredCount); failures = new ThrowableContainer(); }
public void assertEquals(Object s1, Object s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }
@Override public String toString() { if (isEmpty()) { return super.toString(); } else { ByteArrayOutputStream out = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(out); StringBuilder sb = new StringBuilder(); sb.append("Throwables encountered: {\n"); for (Throwable t: throwables) { t.fillInStackTrace(); t.printStackTrace(ps); ps.println("\n---------------\n"); } sb.append("\n}\n").append(out.toString()); return sb.toString(); } }
public void assertEquals(boolean s1, boolean s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }
public TransportTestIoHandlerAdapter(int desiredCount) { latch = new CountDownLatch(desiredCount); failures = new ThrowableContainer(); }
public void assertEquals(Object s1, Object s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }
public void assertEquals(int s1, int s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }
public void assertEquals(double s1, double s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }
public void assertEquals(String msg, Object s1, Object s2) { try { Assert.assertEquals(msg, s1, s2); } catch (AssertionError error) { failures.add(error); } }
public void assertEquals(int s1, int s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }
public void assertEquals(double s1, double s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }
public void assertEquals(boolean s1, boolean s2) { try { Assert.assertEquals(s1, s2); } catch (AssertionError error) { failures.add(error); } }