Modifier and Type | Method and Description |
---|---|
HintTest.HintOutput |
assertContainsWarnings(String... warnings)
Assert that the hint(s) produced warnings include the given warnings.
|
HintTest.HintOutput |
assertNotContainsWarnings(String... warnings)
Assert that the hint(s) produced warnings do not include the given warnings.
|
HintTest.HintOutput |
assertWarnings(String... warnings)
Assert that the hint(s) produced the given warnings.
|
HintTest.HintWarning |
findWarning(String warning)
Find a specific warning.
|
public HintTest.HintOutput assertWarnings(String... warnings)
toString()
results of ErrorDescription
s produced
by the hint(s).warnings
- expected toString()
results of ErrorDescription
s produced
by the hintAssertionError
- if the given warnings do not match the actual warningspublic HintTest.HintOutput assertContainsWarnings(String... warnings)
toString()
results of ErrorDescription
s produced
by the hint(s).warnings
- expected toString()
results of ErrorDescription
s produced
by the hintAssertionError
- if the given warnings do not match the actual warningspublic HintTest.HintOutput assertNotContainsWarnings(String... warnings)
getDescription()
results of ErrorDescription
s produced
by the hint(s).warnings
- expected getDescription()
results of ErrorDescription
s produced
by the hintAssertionError
- if the given warnings contain the actual warningspublic HintTest.HintWarning findWarning(String warning)
warning
- the warning to find - must be equivalent to toString()
results of the ErrorDescription
.AssertionError
- if the given warning cannot be found