use of org.eclipse.winery.compliance.checking.ComplianceCheckingException in project winery by eclipse.
the class ComplianceRuleCheckerTests method completeRule.
@Test
public void completeRule() {
ComplianceRuleChecker checker = new ComplianceRuleChecker(null, null, null);
checker.setToCheckTemplate(topologyTemplateToSearchIn);
checker.setIdentifierTemplate(unrelatedTopology);
checker.setRequiredStructureTemplate(requiredStructure);
ComplianceCheckingException expected = null;
try {
checker.checkComplianceRule();
} catch (ComplianceCheckingException e) {
expected = e;
}
assertNotNull(expected);
assertTrue(StringUtils.equals(ComplianceCheckingException.IDENTIFIER_NOT_IN_REQUIREDSTRUCTURE, expected.getMessage()));
}
Aggregations