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)

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

Constructor Detail

TermResolverMock

public TermResolverMock(String outputName,
                        T result)

TermResolverMock

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

getCost

public int getCost()
Specified by:
getCost in interface TermResolver<T>

getOutput

public String getOutput()
Specified by:
getOutput in interface TermResolver<T>

getPrerequisites

public Set<String> 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<String,Object> resolvedPrereqs,
                 Map<String,String> parameters)
Specified by:
resolve in interface TermResolver<T>


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.