791 } |
791 } |
792 |
792 |
793 public void assertAnalyze(String input, Completeness status, String source, String remaining, Boolean isComplete) { |
793 public void assertAnalyze(String input, Completeness status, String source, String remaining, Boolean isComplete) { |
794 CompletionInfo ci = getAnalysis().analyzeCompletion(input); |
794 CompletionInfo ci = getAnalysis().analyzeCompletion(input); |
795 if (status != null) assertEquals(ci.completeness(), status, "Input : " + input + ", status: "); |
795 if (status != null) assertEquals(ci.completeness(), status, "Input : " + input + ", status: "); |
796 if (source != null) assertEquals(ci.source(), source, "Input : " + input + ", source: "); |
796 assertEquals(ci.source(), source, "Input : " + input + ", source: "); |
797 if (remaining != null) assertEquals(ci.remaining(), remaining, "Input : " + input + ", remaining: "); |
797 if (remaining != null) assertEquals(ci.remaining(), remaining, "Input : " + input + ", remaining: "); |
798 if (isComplete != null) { |
798 if (isComplete != null) { |
799 boolean isExpectedComplete = isComplete; |
799 boolean isExpectedComplete = isComplete; |
800 assertEquals(ci.completeness().isComplete(), isExpectedComplete, "Input : " + input + ", isComplete: "); |
800 assertEquals(ci.completeness().isComplete(), isExpectedComplete, "Input : " + input + ", isComplete: "); |
801 } |
801 } |