org.jmock.core

Class MockObjectSupportTestCase

Known Direct Subclasses:
MockObjectTestCase

public abstract class MockObjectSupportTestCase
extends VerifyingTestCase

Field Summary

static Constraint
ANYTHING
static Constraint
NOT_NULL
static Constraint
NULL

Constructor Summary

MockObjectSupportTestCase()
MockObjectSupportTestCase(String name)

Method Summary

And
and(Constraint left, Constraint right)
IsEqual
eq(Object operand)
IsEqual
eq(boolean operand)
IsEqual
eq(byte operand)
IsEqual
eq(char operand)
IsEqual
eq(double operand)
IsCloseTo
eq(double operand, double error)
IsEqual
eq(float operand)
IsEqual
eq(int operand)
IsEqual
eq(long operand)
IsEqual
eq(short operand)
IsInstanceOf
isA(Class operandClass)
Object
newDummy(Class dummyType)
Object
newDummy(Class dummyType, String name)
Object
newDummy(String name)
IsNot
not(Constraint c)
Or
or(Constraint left, Constraint right)
IsSame
same(Object operand)
StringContains
stringContains(String substring)

Methods inherited from class org.jmock.core.VerifyingTestCase

registerToVerify, runBare, unregisterToVerify, verify

Field Details

ANYTHING

public static final Constraint ANYTHING

NOT_NULL

public static final Constraint NOT_NULL

NULL

public static final Constraint NULL

Constructor Details

MockObjectSupportTestCase

public MockObjectSupportTestCase()

MockObjectSupportTestCase

public MockObjectSupportTestCase(String name)

Method Details

and

public And and(Constraint left,
               Constraint right)

eq

public IsEqual eq(Object operand)

eq

public IsEqual eq(boolean operand)

eq

public IsEqual eq(byte operand)

eq

public IsEqual eq(char operand)

eq

public IsEqual eq(double operand)

eq

public IsCloseTo eq(double operand,
                    double error)

eq

public IsEqual eq(float operand)

eq

public IsEqual eq(int operand)

eq

public IsEqual eq(long operand)

eq

public IsEqual eq(short operand)

isA

public IsInstanceOf isA(Class operandClass)

newDummy

public Object newDummy(Class dummyType)

newDummy

public Object newDummy(Class dummyType,
                       String name)

newDummy

public Object newDummy(String name)

not

public IsNot not(Constraint c)

or

public Or or(Constraint left,
             Constraint right)

same

public IsSame same(Object operand)

stringContains

public StringContains stringContains(String substring)