Examples of DiagnosticExpectation


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

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

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

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

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

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

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

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

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

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

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

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.ERROR, 24 ),
        new DiagnosticExpectation( Kind.ERROR, 41 ),
        new DiagnosticExpectation( Kind.ERROR, 56 ),
        new DiagnosticExpectation( Kind.ERROR, 71 ),
        new DiagnosticExpectation( Kind.ERROR, 86 ),
        new DiagnosticExpectation( Kind.ERROR, 101 ),
        new DiagnosticExpectation( Kind.ERROR, 116 )
    );
  }
View Full Code Here

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

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

    assertFalse( compilationResult );
    assertThatDiagnosticsMatch(
        diagnostics,
        new DiagnosticExpectation( Kind.ERROR, 24 ),
        new DiagnosticExpectation( Kind.ERROR, 42 ),
        new DiagnosticExpectation( Kind.ERROR, 57 ),
        new DiagnosticExpectation( Kind.ERROR, 72 ),
        new DiagnosticExpectation( Kind.ERROR, 87 ),
        new DiagnosticExpectation( Kind.ERROR, 102 ),
        new DiagnosticExpectation( Kind.ERROR, 117 ),
        new DiagnosticExpectation( Kind.ERROR, 132 )
    );
  }
View Full Code Here

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

  private static Set<DiagnosticExpectation> asExpectations(Collection<Diagnostic<? extends JavaFileObject>> diagnosticsList) {
    Set<DiagnosticExpectation> theValue = CollectionHelper.newHashSet();

    for ( Diagnostic<? extends JavaFileObject> diagnostic : diagnosticsList ) {
      theValue.add( new DiagnosticExpectation( diagnostic.getKind(), diagnostic.getLineNumber() ) );
    }

    return theValue;
  }
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.