1 package org.junit.internal.runners.statements;
2 
3 import org.junit.runners.model.FrameworkMethod;
4 import org.junit.runners.model.Statement;
5 
6 public class InvokeMethod extends Statement {
7     private final FrameworkMethod testMethod;
8     private final Object target;
9 
InvokeMethod(FrameworkMethod testMethod, Object target)10     public InvokeMethod(FrameworkMethod testMethod, Object target) {
11         this.testMethod = testMethod;
12         this.target = target;
13     }
14 
15     @Override
evaluate()16     public void evaluate() throws Throwable {
17         testMethod.invokeExplosively(target);
18     }
19 }