@Test public void testConflictIgnoreEmptyRows() throws Exception { analyzer = analyzerProvider .makeAnalyser() .withPersonAgeColumn("==") .withPersonApprovedActionSetField() .withData(DataBuilderProvider.row(null, "").row(null, "true").end()) .buildAnalyzer(); fireUpAnalyzer(); assertDoesNotContain("ConflictingRows", analyzerProvider.getAnalysisReport(), 1); assertDoesNotContain("ConflictingRows", analyzerProvider.getAnalysisReport(), 2); }
@Test public void testImpossibleMatch002() throws Exception { analyzer = analyzerProvider .makeAnalyser() .withEnumColumn("a", "Person", "name", "==", "Toni,Eder") .withPersonNameColumn("==") .withData(DataBuilderProvider.row("Toni", "").end()) .buildAnalyzer(); fireUpAnalyzer(); assertDoesNotContain("ImpossibleMatch", analyzerProvider.getAnalysisReport()); }
@Test public void testNoIssue() throws Exception { analyzer = analyzerProvider .makeAnalyser() .withPersonAgeColumn(">") .withAccountDepositColumn("<") .withApplicationApprovedSetField() .withData(DataBuilderProvider.row(100, 0.0, true).end()) .buildAnalyzer(); fireUpAnalyzer(); assertDoesNotContain("ConflictingRows", analyzerProvider.getAnalysisReport()); }