use of au.gov.asd.tac.constellation.views.qualitycontrol.rules.MissingTypeRule in project constellation by constellation-app.
the class QualityControlViewPaneNGTest method testGetPriorities.
/**
* Test of getPriorities method, of class QualityControlViewPane.
*/
@Test
public void testGetPriorities() {
System.out.println("getPriorities");
final Map<QualityControlRule, QualityCategory> result = QualityControlViewPane.getPriorities();
assertEquals(result.size(), rules.size());
for (final QualityControlRule rule : result.keySet()) {
rule.clearResults();
}
final IdentifierInconsistentWithTypeRule iiRule = new IdentifierInconsistentWithTypeRule();
final MissingTypeRule mRule = new MissingTypeRule();
final UnknownTypeRule uRule = new UnknownTypeRule();
assertEquals(result.get(iiRule), QualityCategory.MEDIUM);
assertEquals(result.get(mRule), QualityCategory.SEVERE);
assertEquals(result.get(uRule), QualityCategory.MINOR);
}
Aggregations