public class RegressionChecks extends java.lang.Object implements TestChecks<RegressionChecks>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<Check> |
checks |
static RegressionChecks |
EMPTY
An empty, immutable set of regression checks.
|
private ExceptionCheck |
exceptionCheck |
| Constructor and Description |
|---|
RegressionChecks()
Create an empty set of regression checks.
|
RegressionChecks(Check check)
Create a singleton set of regression checks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Check check)
Adds the given check to the sequence.
|
java.util.Set<Check> |
checks()
Get all non-exception checks and whether they are passing for this object.
|
RegressionChecks |
commonChecks(RegressionChecks other)
Returns the intersection of checks in this set and another set.
|
int |
count()
Return the number of checks in this test.
|
boolean |
equals(@Nullable java.lang.Object obj) |
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.
|
int |
hashCode() |
boolean |
hasInvalidBehavior()
Indicates whether this set of checks contains any invalid behaviors.
|
public static RegressionChecks EMPTY
private java.util.Set<Check> checks
private ExceptionCheck exceptionCheck
public RegressionChecks()
public RegressionChecks(Check check)
check - the check to put in the newly-created singleton setpublic int count()
TestCheckscount in interface TestChecks<RegressionChecks>public void add(Check check)
add in interface TestChecks<RegressionChecks>check - the check object to add to this set of checksjava.lang.IllegalArgumentException - if the argument's class is ExceptionCheck and this
already contains such a checkpublic java.util.Set<Check> checks()
checks in interface TestChecks<RegressionChecks>public boolean hasChecks()
hasChecks in interface TestChecks<RegressionChecks>public boolean hasErrorBehavior()
hasErrorBehavior in interface TestChecks<RegressionChecks>public ExceptionCheck getExceptionCheck()
TestChecksgetExceptionCheck in interface TestChecks<RegressionChecks>public boolean equals(@Nullable java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic RegressionChecks commonChecks(RegressionChecks other)
TestCheckscommonChecks in interface TestChecks<RegressionChecks>other - the TestChecks to compare withotherpublic boolean hasInvalidBehavior()
Returns false because regression checks are not invalid.
hasInvalidBehavior in interface TestChecks<RegressionChecks>