org.jmock
Class C
java.lang.Object
org.jmock.C
- public abstract class C
- extends java.lang.Object
Convenient factory functions and constants for building Constraints.
Method Summary |
static Constraint |
and(Constraint p1,
Constraint p2)
|
static InvocationMatcher |
anyArgs(int argCount)
|
static InvocationMatcher |
args()
|
static InvocationMatcher |
args(Constraint p)
|
static InvocationMatcher |
args(Constraint p1,
Constraint p2)
|
static InvocationMatcher |
args(Constraint p1,
Constraint p2,
Constraint p3)
|
static InvocationMatcher |
args(Constraint p1,
Constraint p2,
Constraint p3,
Constraint p4)
|
static Constraint |
eq(double d)
|
static Constraint |
eq(int n)
|
static Constraint |
eq(long l)
|
static Constraint |
eq(java.lang.Object o)
|
static InvocationMatcher |
eq(java.lang.Object arg0,
java.lang.Object arg1)
|
static InvocationMatcher |
eq(java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
|
static InvocationMatcher |
eq(java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
|
static Constraint |
gt(char c)
|
static Constraint |
gt(double d)
|
static Constraint |
gt(int n)
|
static Constraint |
gt(long l)
|
static Constraint |
isA(java.lang.Class c)
|
static Constraint |
lt(char c)
|
static Constraint |
lt(double d)
|
static Constraint |
lt(int n)
|
static Constraint |
lt(long l)
|
static Constraint |
not(Constraint p)
|
static Constraint |
or(Constraint p1,
Constraint p2)
|
static Constraint |
same(java.lang.Object o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IS_ANYTHING
public static final IsAnything IS_ANYTHING
IS_NULL
public static final IsNull IS_NULL
IS_NOT_NULL
public static final Constraint IS_NOT_NULL
IS_TRUE
public static final Constraint IS_TRUE
IS_FALSE
public static final Constraint IS_FALSE
IS_ZERO
public static final Constraint IS_ZERO
IS_NOT_ZERO
public static final Constraint IS_NOT_ZERO
NO_ARGS
public static final InvocationMatcher NO_ARGS
ANY_ARGS
public static final InvocationMatcher ANY_ARGS
C
public C()
same
public static Constraint same(java.lang.Object o)
eq
public static Constraint eq(java.lang.Object o)
eq
public static InvocationMatcher eq(java.lang.Object arg0,
java.lang.Object arg1)
eq
public static InvocationMatcher eq(java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2)
eq
public static InvocationMatcher eq(java.lang.Object arg0,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
eq
public static Constraint eq(int n)
eq
public static Constraint eq(long l)
eq
public static Constraint eq(double d)
gt
public static Constraint gt(int n)
gt
public static Constraint gt(long l)
gt
public static Constraint gt(double d)
gt
public static Constraint gt(char c)
lt
public static Constraint lt(int n)
lt
public static Constraint lt(long l)
lt
public static Constraint lt(double d)
lt
public static Constraint lt(char c)
not
public static Constraint not(Constraint p)
and
public static Constraint and(Constraint p1,
Constraint p2)
or
public static Constraint or(Constraint p1,
Constraint p2)
isA
public static Constraint isA(java.lang.Class c)
args
public static InvocationMatcher args()
args
public static InvocationMatcher args(Constraint p)
args
public static InvocationMatcher args(Constraint p1,
Constraint p2)
args
public static InvocationMatcher args(Constraint p1,
Constraint p2,
Constraint p3)
args
public static InvocationMatcher args(Constraint p1,
Constraint p2,
Constraint p3,
Constraint p4)
anyArgs
public static InvocationMatcher anyArgs(int argCount)
Copyright © 2003 jMock.org. All Rights Reserved.