public class InvalidChecks extends java.lang.Object implements TestChecks<InvalidChecks>
| Modifier and Type | Field and Description |
|---|---|
private Check |
check |
static InvalidChecks |
EMPTY
An empty, immutable set of invalid checks.
|
| Constructor and Description |
|---|
InvalidChecks()
Create an empty, mutable set of invalid checks.
|
InvalidChecks(Check check)
Create a singleton set of invalid checks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Check check)
Add a check to this set.
|
java.util.Set<Check> |
checks()
Get all non-exception checks and whether they are passing for this object.
|
InvalidChecks |
commonChecks(InvalidChecks other)
Returns the intersection of checks in this set and another set.
|
int |
count()
Return the number of checks in this test.
|
ExceptionCheck |
getExceptionCheck()
Return the exception check in this object if there is one.
|
boolean |
hasChecks()
Indicates whether this object has checks.
|
boolean |
hasErrorBehavior()
Indicate whether this object has any failing checks.
|
boolean |
hasInvalidBehavior()
Indicates whether this set of checks contains any invalid behaviors.
|
public static final InvalidChecks EMPTY
private Check check
public InvalidChecks()
public InvalidChecks(Check check)
check - the sole member of the newly-created singleton setpublic int count()
TestCheckscount in interface TestChecks<InvalidChecks>public java.util.Set<Check> checks()
TestCheckschecks in interface TestChecks<InvalidChecks>public boolean hasChecks()
TestCheckshasChecks in interface TestChecks<InvalidChecks>public boolean hasErrorBehavior()
TestCheckshasErrorBehavior in interface TestChecks<InvalidChecks>public ExceptionCheck getExceptionCheck()
TestChecksgetExceptionCheck in interface TestChecks<InvalidChecks>public void add(Check check)
TestChecksadd in interface TestChecks<InvalidChecks>check - the check object to add to this set of checkspublic InvalidChecks commonChecks(InvalidChecks other)
TestCheckscommonChecks in interface TestChecks<InvalidChecks>other - the TestChecks to compare withotherpublic boolean hasInvalidBehavior()
TestCheckshasInvalidBehavior in interface TestChecks<InvalidChecks>