use of com.buschmais.jqassistant.plugin.java.api.model.JavaSuppressDescriptor in project jqa-java-plugin by buschmais.
the class SuppressIT method verifySuppress.
private void verifySuppress(String constraintId, String conceptId, String column) throws RuleException {
scanClasses(Suppress.class);
assertThat(validateConstraint(constraintId).getStatus(), equalTo(SUCCESS));
Result<Concept> suppressClasses = applyConcept(conceptId);
assertThat(suppressClasses.getStatus(), equalTo(SUCCESS));
store.beginTransaction();
assertThat(suppressClasses.getRows().size(), equalTo(1));
Map<String, Object> row = suppressClasses.getRows().get(0);
JavaSuppressDescriptor suppressDescriptor = (JavaSuppressDescriptor) row.get(column);
assertThat(asList(suppressDescriptor.getSuppressIds()), hasItem(constraintId));
store.commitTransaction();
}
Aggregations