@Test public void shouldBeSuccess() { UnitTestResult result = new UnitTestResult().setStatus(UnitTestResult.STATUS_OK); assertThat(result.getStatus(), is(UnitTestResult.STATUS_OK)); assertThat(result.isError(), is(false)); assertThat(result.isErrorOrFailure(), is(false)); }
@Test public void shouldBeFailure() { UnitTestResult result = new UnitTestResult().setStatus(UnitTestResult.STATUS_FAILURE); assertThat(result.getStatus(), is(UnitTestResult.STATUS_FAILURE)); assertThat(result.isError(), is(false)); assertThat(result.isErrorOrFailure(), is(true)); }