Package org.jmock.core.constraint
package org.jmock.core.constraint
A collection of commonly useful constraints
- Since:
- 1.0
- See Also:
-
ClassesClassDescriptionCalculates the logical conjunction of two constraints.Constraint that checks that an object has a JavaBean property with the specified name.Constraint that asserts that a JavaBean property on an argument passed to the mock object meets the provided constraint.A constraint that always returns
true
.Is the value a number equal to a value within some range of acceptable error?Is the value equal to another value, as tested by theObject.equals(java.lang.Object)
invokedMethod?Tests if the value is an event announced by a specific object.Is the value greater than anotherComparable
value?Tests whether the value is an instance of a class.Is the value less than anotherComparable
value?Calculates the logical negation of a constraint.Is the value null?Is the value the same object as another value?Calculates the logical disjunction of two constraints.Tests if the argument is a string that contains a substring.Tests if the argument is a string that contains a substring.Tests if the argument is a string that contains a substring.