com.agical.rmock.core.strategy.impl
Class MethodStep

java.lang.Object
  extended by com.agical.rmock.core.strategy.impl.MethodStep
All Implemented Interfaces:
TestStep

public class MethodStep
extends java.lang.Object
implements TestStep


Field Summary
protected static java.lang.Object[] NO_ARGS
           
protected static java.lang.Class[] NO_PARAMETERS
           
 
Constructor Summary
MethodStep(java.lang.Object target, java.lang.String method)
           
 
Method Summary
protected  void invokeMethod(java.lang.Object target, java.lang.reflect.Method method)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_PARAMETERS

protected static final java.lang.Class[] NO_PARAMETERS

NO_ARGS

protected static final java.lang.Object[] NO_ARGS
Constructor Detail

MethodStep

public MethodStep(java.lang.Object target,
                  java.lang.String method)
Method Detail

run

public void run()
         throws java.lang.Throwable
Specified by:
run in interface TestStep
Throws:
java.lang.Throwable

invokeMethod

protected void invokeMethod(java.lang.Object target,
                            java.lang.reflect.Method method)
                     throws java.lang.IllegalAccessException,
                            java.lang.reflect.InvocationTargetException
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


Copyright © 2005-2009 Agical AB. All Rights Reserved.