source: class JavacFailuresSupplierTest {
  
      private static final String CLASS_FILE;
      private static final int LINE_1;
      private static final String ERROR_1;
      private static final String DETAIL_1;
      private static final int LINE_2;
      private static final String ERROR_2;
      private static final String DETAIL_2;
  
      @Test
      public void noFailuresInOutputWithOnlyWarnings() {
  
target:         String javacOutput = "warning: [options] bootstrap class path not set in conjunction with -source 1.7\n"
                  + "Note: "
                  + CLASS_FILE
                  + " uses unchecked or unsafe operations.\n"
                  + "Note: Recompile with -Xlint:unchecked for details.               \n"
                  + "1 warning";
          JavacFailuresSupplier supplier = new JavacFailuresSupplier(new StringBuilder(javacOutput));
          assertThat(supplier.getFailures()).isEmpty();
      }
  
  }