assertThat(analysis.foundKnownFailures(), is(true));
assertThat(analysis.failures(), contains(FAILURE1_NAME, FAILURE2_NAME));
}
public static FailureCauseBuildAction failureCauseBuildAction(String... FailureNames) {
FailureCauseBuildAction action = mock(FailureCauseBuildAction.class);
List<FoundFailureCause> items = new ArrayList<FoundFailureCause>();
for( String name : FailureNames ) {
items.add(failure(name));
}
when(action.getFoundFailureCauses()).thenReturn(items);
return action;
}