net.thucydides.junit.internals
Class MethodInvoker

Package class diagram package MethodInvoker
java.lang.Object
  extended by net.thucydides.junit.internals.MethodInvoker

public class MethodInvoker
extends Object

A centralized way to invoke a method on a parameter. Raises an IllegalArgumentException if something goes wrong.


Constructor Summary
protected MethodInvoker(Object target)
           
 
Method Summary
protected  Object invokeMethod(Method method, Object[] parameters)
           
static MethodInvoker on(Object target)
           
 Object run(Method method, Object... parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvoker

protected MethodInvoker(Object target)
Method Detail

on

public static MethodInvoker on(Object target)

run

public Object run(Method method,
                  Object... parameters)

invokeMethod

protected Object invokeMethod(Method method,
                              Object[] parameters)
                       throws IllegalAccessException,
                              InvocationTargetException
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.