Examples of DiagnosticExpectation


Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

    boolean compilationResult =
        compilerHelper.compile( new ConstraintValidationProcessor(), diagnostics, sourceFile );

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch(
        diagnostics, new DiagnosticExpectation( Kind.ERROR, 43 ), new DiagnosticExpectation( Kind.ERROR, 49 )
    );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

        compilerHelper.compile( new ConstraintValidationProcessor(), diagnostics, sourceFile );

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.ERROR, 54 ),
        new DiagnosticExpectation( Kind.ERROR, 55 ),
        new DiagnosticExpectation( Kind.ERROR, 56 ),
        new DiagnosticExpectation( Kind.ERROR, 57 ),
        new DiagnosticExpectation( Kind.ERROR, 58 ),
        new DiagnosticExpectation( Kind.ERROR, 59 ),
        new DiagnosticExpectation( Kind.ERROR, 60 ),
        new DiagnosticExpectation( Kind.ERROR, 61 ),
        new DiagnosticExpectation( Kind.ERROR, 62 ),
        new DiagnosticExpectation( Kind.ERROR, 63 ),
        new DiagnosticExpectation( Kind.ERROR, 64 ),
        new DiagnosticExpectation( Kind.ERROR, 65 ),
        new DiagnosticExpectation( Kind.ERROR, 66 ),
        new DiagnosticExpectation( Kind.ERROR, 67 ),
        new DiagnosticExpectation( Kind.ERROR, 68 )

    );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

    assertFalse( compilationResult );

    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.ERROR, 17 )
    );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

    assertFalse( compilationResult );

    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.ERROR, 10 ),
        new DiagnosticExpectation( Kind.ERROR, 17 ),
        new DiagnosticExpectation( Kind.ERROR, 20 )
    );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

    // compilation succeeds as there are problems, but Kind.WARNING won't stop compilation
    assertTrue( compilationResult );

    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.NOTE, Diagnostic.NOPOS ), //says that verbose messaging is enabled
        new DiagnosticExpectation( Kind.WARNING, 43 ),
        new DiagnosticExpectation( Kind.WARNING, 49 )
    );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

            sourceFile3,
            sourceFile4
        );

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch( diagnostics, new DiagnosticExpectation( Kind.ERROR, 19 ) );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

            sourceFile3,
            sourceFile4
        );

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch( diagnostics, new DiagnosticExpectation( Kind.ERROR, 19 ) );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

        compilerHelper.compile( new ConstraintValidationProcessor(), diagnostics, false, false, sourceFile );

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.ERROR, 21 ),
        new DiagnosticExpectation( Kind.ERROR, 28 ),
        new DiagnosticExpectation( Kind.ERROR, 36 ),
        new DiagnosticExpectation( Kind.ERROR, 43 ),
        new DiagnosticExpectation( Kind.ERROR, 51 ),
        new DiagnosticExpectation( Kind.ERROR, 59 ),
        new DiagnosticExpectation( Kind.ERROR, 67 ),
        new DiagnosticExpectation( Kind.ERROR, 74 )
    );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

        compilerHelper.compile( new ConstraintValidationProcessor(), diagnostics, false, true, sourceFile );

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.ERROR, 21 ),
        new DiagnosticExpectation( Kind.ERROR, 28 ),
        new DiagnosticExpectation( Kind.ERROR, 36 ),
        new DiagnosticExpectation( Kind.ERROR, 43 ),
        new DiagnosticExpectation( Kind.ERROR, 59 ),
        new DiagnosticExpectation( Kind.ERROR, 67 ),
        new DiagnosticExpectation( Kind.ERROR, 74 )
    );
  }
View Full Code Here

Examples of org.hibernate.validator.ap.util.DiagnosticExpectation

        compilerHelper.compile(
            new ConstraintValidationProcessor(), diagnostics, sourceFile1, sourceFile2, sourceFile3
        );

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch( diagnostics, new DiagnosticExpectation( Kind.ERROR, 17 ) );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.