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