(chore) test with no schematron check / results

This commit is contained in:
Andreas Penski (init) 2020-03-23 13:39:38 +01:00
parent fc419495e9
commit b50bed91d1

View file

@ -95,6 +95,15 @@ public class ComputeAcceptanceActionTest {
assertThat(bag.getAcceptStatus()).isEqualTo(AcceptRecommendation.REJECT);
}
@Test
public void testNoSchematronCheck() {
final Bag bag = createBag(true, true);
// remove schematron results
bag.getReportInput().getValidationResultsSchematron().clear();
this.action.check(bag);
assertThat(bag.getAcceptStatus()).isEqualTo(AcceptRecommendation.ACCEPTABLE);
}
@Test
public void testMissingReport() {
final Bag bag = createBag(false, true);