Search in sources :

Example 1 with JavaSuppressDescriptor

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();
}
Also used : Concept(com.buschmais.jqassistant.core.rule.api.model.Concept) JavaSuppressDescriptor(com.buschmais.jqassistant.plugin.java.api.model.JavaSuppressDescriptor)

Aggregations

Concept (com.buschmais.jqassistant.core.rule.api.model.Concept)1 JavaSuppressDescriptor (com.buschmais.jqassistant.plugin.java.api.model.JavaSuppressDescriptor)1