@Test public void codeIfPassed() { MatcherAssert.assertThat( new JunitStatus(new FakeResult(true, 0, 0, 0)).code(), Matchers.is((short) 0)); }
@Override public final short code() { if (this.status.wasSuccessful()) { return (short) 0; } return (short) 1; }
JunitStatus implements Status { @Override public final short code() { if (this.status.wasSuccessful()) { return (short) 0; } return (short) 1; } }
JunitStatus implements Status { @Override public final short code() { if (this.status.wasSuccessful()) { return (short) 0; } return (short) 1; } JunitStatus(Result result); }
JunitStatus implements Status { @Override public final short code() { if (this.status.wasSuccessful()) { return (short) 0; } return (short) 1; } JunitStatus(Result result); @Override final short code(); @Override final int runCount(); @Override final int failureCount(); @Override final int ignoreCount(); }
JunitStatus implements Status { @Override public final short code() { if (this.status.wasSuccessful()) { return (short) 0; } return (short) 1; } JunitStatus(Result result); @Override final short code(); @Override final int runCount(); @Override final int failureCount(); @Override final int ignoreCount();  }