public static interface CompileTester.UnsuccessfulCompilationClause extends CompileTester.CompilationWithWarningsClause<CompileTester.UnsuccessfulCompilationClause>
| Modifier and Type | Method and Description |
|---|---|
CompileTester.FileClause<CompileTester.UnsuccessfulCompilationClause> |
withErrorContaining(String messageFragment)
Checks that an error exists that contains the given fragment in the
diagnostic message.
|
CompileTester.UnsuccessfulCompilationClause |
withErrorCount(int errorCount)
Checks that the total error count in all files matches the given amount.
|
withWarningContaining, withWarningCountwithNoteContaining, withNoteCount@CanIgnoreReturnValue CompileTester.FileClause<CompileTester.UnsuccessfulCompilationClause> withErrorContaining(String messageFragment)
@CanIgnoreReturnValue CompileTester.UnsuccessfulCompilationClause withErrorCount(int errorCount)
Diagnostic.Kind#ERROR and not (for example) warnings.Copyright © 2013–2020. All rights reserved.