com.agical.rmock.core.match.constraint.method
Class MethodConstraintFactory
java.lang.Object
com.agical.rmock.core.match.constraint.method.MethodConstraintFactory
public class MethodConstraintFactory
- extends Object
Method Summary |
Expression |
name(Expression expression)
Passes if the mame of any method passed to this constraint passes the expression
passes as the expression parameter. |
Expression |
paramTypes(Expression[] expressions)
Returns an expression that matches the parametertypes of a method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodConstraintFactory
public MethodConstraintFactory()
name
public Expression name(Expression expression)
- Passes if the mame of any method passed to this constraint passes the expression
passes as the expression parameter.
- Parameters:
expression
- The expression the name of a methofd passed to the constraint must pass
- Returns:
- A MethodNameConstraint
paramTypes
public Expression paramTypes(Expression[] expressions)
- Returns an expression that matches the parametertypes of a method.
- Parameters:
expressions
- Expressions to match the parameter types of this method
- Returns:
- an expression that matches parameter types.
Copyright © 2005-2011 Agical AB. All Rights Reserved.