langtools/test/jdk/jshell/KullaTesting.java
changeset 45748 0202b55d8e08
parent 44573 245bb4e6f983
equal deleted inserted replaced
45747:bdf4b1b26697 45748:0202b55d8e08
   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         }