Package randoop.test
Interface TestChecks<T extends TestChecks<T>>
- All Known Implementing Classes:
ErrorRevealingChecks
,InvalidChecks
,RegressionChecks
public interface TestChecks<T extends TestChecks<T>>
A TestChecks reprents a set of Checks, and possibly a single ExceptionCheck.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a check to this set.checks()
Get all non-exception checks and whether they are passing for this object.commonChecks
(T other) Returns the intersection of checks in this set and another set.int
count()
Return the number of checks in this test.@Nullable ExceptionCheck
Return the exception check in this object if there is one.boolean
Indicates whether this object has checks.boolean
Indicate whether this object has any failing checks.boolean
Indicates whether this set of checks contains any invalid behaviors.
-
Method Details
-
count
int count()Return the number of checks in this test.- Returns:
- the count of checks in this object
-
checks
Get all non-exception checks and whether they are passing for this object.- Returns:
- all checks with passing status
-
add
Add a check to this set.- Parameters:
ck
- the check object to add to this set of checks
-
hasChecks
boolean hasChecks()Indicates whether this object has checks.- Returns:
- true if this object has checks, false otherwise
-
hasInvalidBehavior
boolean hasInvalidBehavior()Indicates whether this set of checks contains any invalid behaviors.- Returns:
- true when this contains checks for invalid behavior, false otherwise
-
hasErrorBehavior
boolean hasErrorBehavior()Indicate whether this object has any failing checks. (This is essentially asking whether this is an error revealing test.)- Returns:
- true if this object has failing checks, false otherwise
-
getExceptionCheck
@Nullable ExceptionCheck getExceptionCheck()Return the exception check in this object if there is one.- Returns:
- the expected exception check, null otherwise
-
commonChecks
Returns the intersection of checks in this set and another set.- Parameters:
other
- theTestChecks
to compare with- Returns:
- the checks common to this set of checks and those in
other
-