Modifier and Type | Method and Description |
---|---|
Expression[] |
Expectation.getArguments() |
Modifier and Type | Method and Description |
---|---|
void |
Assert.assertThat(Object actual,
Expression expression)
Assert method that asserts that the object passed in the actual parameter
passes the constraint passed in the expected parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
ExpressionDescriber.describeInverted(Expression wrappedConstraint)
describe this constraint as inverted
ie !wrappedConstraint |
Modifier and Type | Method and Description |
---|---|
void |
ExpressionDescriberImpl.describeInverted(Expression expression) |
Modifier and Type | Method and Description |
---|---|
void |
ExceptionVerifierImpl.setUserExceptionExpectation(Expression expression) |
void |
ExceptionVerifier.setUserExceptionExpectation(Expression expression) |
Modifier and Type | Method and Description |
---|---|
Expression[] |
ExpectationImpl.getArguments() |
Modifier and Type | Method and Description |
---|---|
void |
Engine.assertThat(Object actual,
Expression expression) |
void |
ExpectationImpl.setArguments(Expression[] argumentConstrants) |
Modifier and Type | Method and Description |
---|---|
ActionModifier |
ArgumentsModifier.args(Expression arg1) |
ActionModifier |
ArgumentsModifier.args(Expression[] args) |
ActionModifier |
ArgumentsModifier.args(Expression arg1,
Expression arg2) |
ActionModifier |
ArgumentsModifier.args(Expression arg1,
Expression arg2,
Expression arg3) |
ActionModifier |
ArgumentsModifier.args(Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4) |
ActionModifier |
ArgumentsModifier.args(Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4,
Expression arg5) |
ActionModifier |
ArgumentsModifier.args(Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4,
Expression arg5,
Expression arg6) |
void |
ModifiableExpectation.setArguments(Expression[] argumentConstrants) |
Modifier and Type | Method and Description |
---|---|
ActionModifier |
ExpectationModifierImpl.args(Expression arg1) |
ActionModifier |
ExpectationModifierImpl.args(Expression[] newArgs) |
ActionModifier |
ExpectationModifierImpl.args(Expression arg1,
Expression arg2) |
ActionModifier |
ExpectationModifierImpl.args(Expression arg1,
Expression arg2,
Expression arg3) |
ActionModifier |
ExpectationModifierImpl.args(Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4) |
ActionModifier |
ExpectationModifierImpl.args(Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4,
Expression arg5) |
ActionModifier |
ExpectationModifierImpl.args(Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4,
Expression arg5,
Expression arg6) |
Modifier and Type | Method and Description |
---|---|
CollectionSelector |
Finder.forEach(Expression expression) |
Modifier and Type | Interface and Description |
---|---|
interface |
Constraint
(c) Agical AB 2005
|
interface |
Operator |
Modifier and Type | Method and Description |
---|---|
Expression |
Expression.and(Expression right)
Ands this expression with the right side expression
|
Expression |
Expression.or(Expression right)
Ors this expression with the right side expression
|
Expression |
Expression.xor(Expression right)
Xors this expression with the right side expression
|
Modifier and Type | Method and Description |
---|---|
Expression |
Expression.and(Expression right)
Ands this expression with the right side expression
|
Expression |
Expression.or(Expression right)
Ors this expression with the right side expression
|
Expression |
Expression.xor(Expression right)
Xors this expression with the right side expression
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractConstraint
(c) Agical AB 2005
|
class |
AnythingConstraint |
class |
ContainsConstraint |
class |
EndsWithConstraint |
class |
EqualsConstraint
(c) Agical AB 2005
|
class |
GreaterThanConstraint
(c) Agical AB 2005
|
class |
GreaterThanOrEqualConstraint
(c) Agical AB 2005
|
class |
InstanceOfConstraint
(c) Agical AB 2005
|
class |
IsFalseConstraint
(c) Agical AB 2005
|
class |
IsNullConstraint
(c) Agical AB 2005
|
class |
IsTrueConstraint
(c) Agical AB 2005
|
class |
LessThanConstraint |
class |
LessThanOrEqualConstraint |
class |
SameConstraint
(c) Agical AB 2005
|
class |
StartsWithConstraint |
Modifier and Type | Field and Description |
---|---|
Expression |
ConstraintFactory.ANYTHING
Always passes
|
Expression |
ConstraintFactory.AS_RECORDED
Special expression to indicate that a recorded argument on this position should
not be changed.
|
Expression |
ConstraintFactory.FALSE
Checks if the checked actual value is a boolen and false
|
Expression |
ConstraintFactory.NoChange
Deprecated.
Use AS_RECORDED instead
|
Expression |
ConstraintFactory.NOT_NULL
Checks if the checked actual value is a boolen and not null.
|
Expression |
ConstraintFactory.NULL
Passes if the checked actual value is null
|
Expression |
ConstraintFactory.TRUE
Checks if the checked actual value is a boolen and true
|
Modifier and Type | Method and Description |
---|---|
Expression |
ConstraintFactory.containing(String string)
Passes if the actual string is containing the value of string
|
Expression |
ConstraintFactory.endingWith(String string)
Passes if the actual string ends with the value of string
|
Expression |
ConstraintFactory.eq(boolean ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(byte ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(char ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(double ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(float ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(int ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(long ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(Object ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.eq(short ref)
Passes if the reference is equal to the actual object.
|
Expression |
ConstraintFactory.ge(byte ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.ge(char ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.ge(double ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.ge(float ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.ge(int ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.ge(long ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.ge(Object ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.ge(short ref)
Passes if the actual is greater than or equal to the reference.
|
Expression |
ConstraintFactory.gt(byte ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.gt(char ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.gt(double ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.gt(float ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.gt(int ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.gt(long ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.gt(Object ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.gt(short ref)
Passes if the actual is greater than the reference.
|
Expression |
ConstraintFactory.instanceOf(Class clazz)
Passes if the actual object is an instance of the class passed as the parameter clazz.
|
Expression |
ConstraintFactory.le(byte ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.le(char ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.le(double ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.le(float ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.le(int ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.le(long ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.le(Object ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.le(short ref)
Passes if the actual is less than or equal to the reference.
|
Expression |
ConstraintFactory.lt(byte ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.lt(char ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.lt(double ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.lt(float ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.lt(int ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.lt(long ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.lt(Object ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.lt(short ref)
Passes if the actual is less than the reference.
|
Expression |
ConstraintFactory.not(Expression expression)
Inverts an expression
|
Expression |
ConstraintFactory.same(Object ref)
Passes if the actual object is the same reference as the ref object.
|
Expression |
ConstraintFactory.startingWith(String string)
Passes if the actual string begins with the value of string
|
Modifier and Type | Method and Description |
---|---|
Expression |
ConstraintFactory.not(Expression expression)
Inverts an expression
|
Modifier and Type | Class and Description |
---|---|
class |
ClassAssignableToConstraint |
class |
ClassIsAbstractConstraint |
class |
ClassNameConstraint |
Modifier and Type | Method and Description |
---|---|
Expression |
ClassConstraintFactory.abstr()
This constraint passes if the checked class is abstract
|
Expression |
ClassConstraintFactory.assignableTo(Class clazz)
Checks wether a class is an instance of (or subclass of) the class
passed in the clazz parameter.
|
Expression |
ClassConstraintFactory.name(Expression expression)
Returns an expression that checks wether the classes name passes
the expression passed in the parameter expression.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ClassConstraintFactory.name(Expression expression)
Returns an expression that checks wether the classes name passes
the expression passed in the parameter expression.
|
Constructor and Description |
---|
ClassNameConstraint(Expression expression) |
Modifier and Type | Class and Description |
---|---|
class |
MethodNameConstraint |
class |
MethodParameterTypesConstraint |
Modifier and Type | Method and Description |
---|---|
Expression |
MethodConstraintFactory.name(Expression expression)
Passes if the mame of any method passed to this constraint passes the expression
passes as the expression parameter.
|
Expression |
MethodConstraintFactory.paramTypes(Expression[] expressions)
Returns an expression that matches the parametertypes of a method.
|
Modifier and Type | Method and Description |
---|---|
Expression |
MethodConstraintFactory.name(Expression expression)
Passes if the mame of any method passed to this constraint passes the expression
passes as the expression parameter.
|
Expression |
MethodConstraintFactory.paramTypes(Expression[] expressions)
Returns an expression that matches the parametertypes of a method.
|
Constructor and Description |
---|
MethodNameConstraint(Expression reference) |
MethodParameterTypesConstraint(Expression[] paramExpressions) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBinaryOperator |
class |
AbstractExpression |
class |
AndOperator |
class |
NotOperator
(c) Agical AB 2005
|
class |
OrOperator |
class |
XorOperator |
Modifier and Type | Method and Description |
---|---|
Expression |
AbstractExpression.and(Expression right) |
Expression |
AbstractBinaryOperator.getLeft() |
Expression |
AbstractBinaryOperator.getRight() |
Expression |
AbstractExpression.or(Expression right) |
Expression |
AbstractExpression.xor(Expression right) |
Modifier and Type | Method and Description |
---|---|
Expression |
AbstractExpression.and(Expression right) |
Expression |
AbstractExpression.or(Expression right) |
Expression |
AbstractExpression.xor(Expression right) |
Constructor and Description |
---|
AbstractBinaryOperator(String operator,
Expression left,
Expression right) |
AndOperator(Expression left,
Expression right) |
NotOperator(Expression wrappedConstraint) |
OrOperator(Expression left,
Expression right) |
XorOperator(Expression left,
Expression right) |
Constructor and Description |
---|
ExpressionReference(Expression expression) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractStrategyTestCase.assertThat(boolean result,
Expression constraint) |
void |
AbstractStrategyTestCase.assertThat(byte result,
Expression constraint) |
void |
AbstractStrategyTestCase.assertThat(char result,
Expression constraint) |
void |
AbstractStrategyTestCase.assertThat(double result,
Expression constraint) |
void |
AbstractStrategyTestCase.assertThat(float result,
Expression constraint) |
void |
AbstractStrategyTestCase.assertThat(int result,
Expression constraint) |
void |
AbstractStrategyTestCase.assertThat(long result,
Expression constraint) |
void |
AbstractStrategyTestCase.assertThat(Object actual,
Expression expression)
Assert method that asserts that the object passed in the actual parameter
passes the constraint passed in the expected parameter.
|
void |
AbstractStrategyTestCase.assertThat(short result,
Expression constraint) |
void |
RMockTestCase.expectThatExceptionThrown(Expression exceptionExpression)
Sets up that an exception is expected to be thrown as a result of this testCase.
|
protected CollectionSelector |
DynamicTestSuite.forEach(Expression expression) |
protected CollectionSelector |
RMockTestCase.forEach(Expression expression) |
Copyright © 2005-2013 Agical AB. All Rights Reserved.