• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package junitparams.internal;
2 
3 import org.junit.runners.model.FrameworkMethod;
4 import org.junit.runners.model.Statement;
5 
6 /**
7  * JUnit invoker for non-parameterised test methods
8  */
9 public class InvokeNonParameterisedMethod extends Statement {
10 
11     private final FrameworkMethod testMethod;
12     private final Object testClass;
13 
InvokeNonParameterisedMethod(FrameworkMethod testMethod, Object testClass)14     InvokeNonParameterisedMethod(FrameworkMethod testMethod, Object testClass) {
15         this.testMethod = testMethod;
16         this.testClass = testClass;
17     }
18 
19     @Override
evaluate()20     public void evaluate() throws Throwable {
21         testMethod.invokeExplosively(testClass);
22     }
23 
24 }
25