public static interface CompileTester.CompilationWithWarningsClause<T> extends CompileTester.CompilationWithNotesClause<T>
| Modifier and Type | Method and Description |
|---|---|
CompileTester.FileClause<T> |
withWarningContaining(String messageFragment)
Checks that a warning exists that contains the given fragment in the
diagnostic message.
|
T |
withWarningCount(int warningCount)
Checks that the total warning count in all files matches the given amount.
|
withNoteContaining, withNoteCount@CanIgnoreReturnValue CompileTester.FileClause<T> withWarningContaining(String messageFragment)
@CanIgnoreReturnValue T withWarningCount(int warningCount)
Diagnostic.Kind#WARNING.Copyright © 2013–2022. All rights reserved.