org.kuali.student.common.test.mock
Class MockArgumentMapper
java.lang.Object
org.kuali.student.common.test.mock.MockArgumentMapper
public class MockArgumentMapper
- extends Object
Use this mapper to set method return for mock proxy to return values you
based on predefined arguments.
NOTE: Currently only supports single argument methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
argumentMapper
private Map<Object,Object> argumentMapper
MockArgumentMapper
public MockArgumentMapper()
getReturnValue
public Object getReturnValue(Object[] arguments)
- This method returns the return value for the specified arguments
- Parameters:
arguments
-
- Returns:
- return value for arguments.
getArgumentMapper
public Map<Object,Object> getArgumentMapper()
- Returns:
- the methodReturnMap
setArgumentMapper
public void setArgumentMapper(Map<Object,Object> argumentMapper)
- Parameters:
methodReturnMap
- the methodReturnMap to set
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.