< prev index next >

test/langtools/lib/combo/tools/javac/combo/CompilationTestCase.java

Print this page
@@ -110,10 +110,14 @@
  
      protected void assertOKWithWarning(String warning, String... constructs) {
          assertCompile(expandMarkers(constructs), () -> assertCompileSucceededWithWarning(warning), false);
      }
  
+     protected void assertOKWithWarning(String warning, int numberOfTimes, String... constructs) {
+         assertCompile(expandMarkers(constructs), () -> assertCompileSucceededWithWarning(warning, numberOfTimes), false);
+     }
+ 
      protected void assertFail(String expectedDiag, String... constructs) {
          assertCompile(expandMarkers(constructs), () -> assertCompileFailed(expectedDiag), false);
      }
  
      protected void assertFail(String expectedDiag, Consumer<Diagnostic<?>> diagConsumer, String... constructs) {
< prev index next >