hightide-compiler/src/test/java/io/hightide/compiler/AbstractCompilerPluginTest.java
/**
     * Asserts that the compilation produced a result of the following
     * {@link javax.tools.Diagnostic.Kind} at the given line number.
     * <p/>
     * Does not check that this is the <em>only</em> diagnostic kind returned!
     *
     * @param expectedDiagnosticKind the kind of diagnostic expected
     * @param expectedLineNumber     the line number at which the diagnostic is expected
     * @param diagnostics            the result of the compilation
     * @see #assertCompilationSuccessful(List)
     * @see #assertCompilationReturned(javax.tools.Diagnostic.Kind[], long[], List)
     */
Asserts that the compilation produced a result of the following
javax.tools.Diagnostic.Kind at the given line number.

Does not check that this is the only diagnostic kind returned!


Asserts that the compilation produced a result of the following javax . tools . Diagnostic . Kind at the given line number . Does not check that this is the only diagnostic kind returned!
protected static void assertCompilationReturned(
            Diagnostic.Kind expectedDiagnosticKind, long expectedLineNumber,
            List<Diagnostic<? extends JavaFileObject>> diagnostics) {
        assert ((expectedDiagnosticKind != null) && (diagnostics != null));
        boolean expectedDiagnosticFound = false;
        for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics) {
            if (diagnostic.getKind().equals(expectedDiagnosticKind)
                    && (diagnostic.getLineNumber() == expectedLineNumber)) {
                expectedDiagnosticFound = true;
            }
        }
        Assert.assertTrue("Expected a result of kind " + expectedDiagnosticKind
                + " at line " + expectedLineNumber, expectedDiagnosticFound);
    }
protected static void assertCompilationReturned ( Diagnostic . Kind expectedDiagnosticKind , long expectedLineNumber , List < Diagnostic < ? extends JavaFileObject > > diagnostics ) { assert ( ( expectedDiagnosticKind != null ) && ( diagnostics != null ) ) ; boolean expectedDiagnosticFound = false ; for ( Diagnostic < ? extends JavaFileObject > diagnostic : diagnostics ) { if ( diagnostic . getKind ( ) . equals ( expectedDiagnosticKind ) && ( diagnostic . getLineNumber ( ) == expectedLineNumber ) ) { expectedDiagnosticFound = true ; } } Assert . assertTrue ( "Expected a result of kind " + expectedDiagnosticKind + " at line " + expectedLineNumber , expectedDiagnosticFound ) ; }
Asserts that the compilation produced a result of the following
 {@link javax.tools.Diagnostic.Kind} at the given line number.
Asserts that the compilation produced a result of the following { @link javax . tools . Diagnostic . Kind } at the given line number .