use of com.buschmais.jqassistant.core.report.api.model.Result in project jqa-core-framework by buschmais.
the class AnalyzerRuleVisitorTest method skipConcept.
@Test
void skipConcept() throws RuleException {
analyzerRuleVisitor.skipConcept(concept, Severity.MAJOR);
verify(store, never()).executeQuery(eq(statement), anyMap());
verify(reportWriter).beginConcept(concept);
ArgumentCaptor<Result> resultCaptor = ArgumentCaptor.forClass(Result.class);
verify(reportWriter).setResult(resultCaptor.capture());
Result result = resultCaptor.getValue();
assertThat(result.getStatus(), equalTo(Result.Status.SKIPPED));
assertThat(result.getSeverity(), equalTo(Severity.MAJOR));
verify(reportWriter).endConcept();
verify(store, never()).create(ConceptDescriptor.class);
}
Aggregations