use of io.jenkins.blueocean.rest.model.BlueTestResult in project blueocean-plugin by jenkinsci.
the class BlueTestResultContainerImplTest method testsFilteredExistingFailures.
@Test
public void testsFilteredExistingFailures() throws Exception {
List<BlueTestResult> allResults = IteratorUtils.toList(container.iterator());
List<BlueTestResult> allNew = IteratorUtils.toList(container.getBlueTestResultIterator(allResults, Status.FAILED.name(), null, "2"));
assertEquals(1, allNew.size());
for (BlueTestResult tr : allNew) {
assertEquals(Status.FAILED, tr.getStatus());
assertThat(tr.getAge(), greaterThan(2));
}
}
Aggregations