use of com.buschmais.jqassistant.core.rule.api.model.Concept in project jqa-core-framework by buschmais.
the class XmlReportTestHelper method createXmlWithUmlauts.
public File createXmlWithUmlauts(String description) throws ReportException {
xmlReportWriter.begin();
Concept concept = Concept.builder().id("mein:Konzept").description(description).severity(Severity.MAJOR).executable(new CypherExecutable("match...")).verification(ROW_COUNT_VERIFICATION).report(Report.builder().primaryColumn("c2").build()).build();
Map<String, Severity> concepts = new HashMap<>();
concepts.put("mein:Konzept", Severity.INFO);
Group group = Group.builder().id("default").description("Meine Gruppe").concepts(concepts).build();
xmlReportWriter.beginGroup(group);
xmlReportWriter.beginConcept(concept);
List<Map<String, Object>> rows = new ArrayList<>();
rows.add(createRow());
Result<Concept> result = Result.<Concept>builder().rule(concept).status(Result.Status.SUCCESS).severity(Severity.CRITICAL).columnNames(Arrays.asList(C1, C2)).rows(rows).build();
xmlReportWriter.setResult(result);
xmlReportWriter.endConcept();
xmlReportWriter.endGroup();
xmlReportWriter.end();
return xmlReportWriter.getXmlReportFile();
}
use of com.buschmais.jqassistant.core.rule.api.model.Concept in project jqa-core-framework by buschmais.
the class TransactionalVisitorTest method visitConcept.
@Test
void visitConcept() throws RuleException {
Concept concept = mock(Concept.class);
visitor.visitConcept(concept, MINOR);
verify(delegate).visitConcept(concept, MINOR);
verifySuccessfulTransaction();
}
Aggregations