public class JMock1Adapter extends Object implements org.jmock.core.Constraint
Matcher
to act as an jMock1 Constraint.
Note, this is not necessary for jMock2 as it supports Hamcrest
out of the box.| Constructor and Description |
|---|
JMock1Adapter(Matcher matcher) |
| Modifier and Type | Method and Description |
|---|---|
static org.jmock.core.Constraint |
adapt(Matcher matcher)
Convenience factory method that will adapt a
Hamcrest
Matcher to act as an
jMock Constraint. |
StringBuffer |
describeTo(StringBuffer buffer) |
boolean |
eval(Object o) |
public JMock1Adapter(Matcher matcher)
public static org.jmock.core.Constraint adapt(Matcher matcher)
Matcher to act as an
jMock Constraint.public boolean eval(Object o)
eval in interface org.jmock.core.Constraintpublic StringBuffer describeTo(StringBuffer buffer)
describeTo in interface org.jmock.core.SelfDescribing