org.kuali.rice.krms.framework
Class TermResolverMock<T>
java.lang.Object
org.kuali.rice.krms.framework.TermResolverMock<T>
- All Implemented Interfaces:
- TermResolver<T>
public class TermResolverMock<T>
- extends Object
- implements TermResolver<T>
Cheesy TermResolver
implementation for testing purposes.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
result
private T result
outputTermSpec
private TermSpecification outputTermSpec
params
private Set<String> params
TermResolverMock
public TermResolverMock(TermSpecification outputTermSpec,
T result)
TermResolverMock
public TermResolverMock(TermSpecification outputTerm,
String[] params,
T result)
getCost
public int getCost()
- Specified by:
getCost
in interface TermResolver<T>
getOutput
public TermSpecification getOutput()
- Specified by:
getOutput
in interface TermResolver<T>
getPrerequisites
public Set<TermSpecification> getPrerequisites()
- Specified by:
getPrerequisites
in interface TermResolver<T>
getParameterNames
public Set<String> getParameterNames()
- Specified by:
getParameterNames
in interface TermResolver<T>
resolve
public T resolve(Map<TermSpecification,Object> resolvedPrereqs,
Map<String,String> parameters)
- Specified by:
resolve
in interface TermResolver<T>
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.