use of org.drools.workbench.services.verifier.api.client.reporting.Issue in project drools-wb by kiegroup.
the class BRLFragmentsAnalyzerFromFileTest method testRuleTableGDST.
@Test
public void testRuleTableGDST() throws Exception {
final String xml = loadResource("RuleTable.gdst");
final GuidedDecisionTable52 table52 = GuidedDTXMLPersistence.getInstance().unmarshal(xml);
final Analyzer analyzer = analyzerProvider.makeAnalyser(table52);
analyzer.resetChecks();
analyzer.analyze();
final Set<Issue> analysisReport = analyzerProvider.getAnalysisReport();
for (final Issue issue : analysisReport) {
System.out.println(issue.getCheckType());
System.out.println(issue.getDebugMessage());
}
assertDoesNotContain(CONFLICTING_ROWS, analysisReport);
assertDoesNotContain(SINGLE_HIT_LOST, analysisReport);
}
use of org.drools.workbench.services.verifier.api.client.reporting.Issue in project drools-wb by kiegroup.
the class DetectConflictingRowsCheck method makeIssue.
@Override
protected Issue makeIssue(final Severity severity, final CheckType checkType) {
final Issue issue = new Issue(severity, checkType, new HashSet<>(Arrays.asList(ruleInspector.getRowIndex() + 1, other.getRowIndex() + 1)));
issue.setDebugMessage(new RuleInspectorDumper(ruleInspector).dump() + " ## " + new RuleInspectorDumper(other).dump());
return issue;
}
Aggregations