org.kuali.rice.krms.framework
Class TermResolverMock<T>

java.lang.Object
  extended by 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)

Field Summary
private  TermSpecification outputTermSpec
           
private  Set<String> params
           
private  T result
           
 
Constructor Summary
TermResolverMock(TermSpecification outputTerm, String[] params, T result)
           
TermResolverMock(TermSpecification outputTermSpec, T result)
           
 
Method Summary
 int getCost()
           
 TermSpecification getOutput()
           
 Set<String> getParameterNames()
           
 Set<TermSpecification> getPrerequisites()
           
 T resolve(Map<TermSpecification,Object> resolvedPrereqs, Map<String,String> parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

private T result

outputTermSpec

private TermSpecification outputTermSpec

params

private Set<String> params
Constructor Detail

TermResolverMock

public TermResolverMock(TermSpecification outputTermSpec,
                        T result)

TermResolverMock

public TermResolverMock(TermSpecification outputTerm,
                        String[] params,
                        T result)
Method Detail

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.