@Override public String getName() { return invocation.getIteration().getDescription().getMethodName(); } };
private FrameworkMethod createFrameworkMethod(final IMethodInvocation invocation) { return new FrameworkMethod(invocation.getIteration().getParent().getFeatureMethod().getReflection()) { @Override public String getName() { return invocation.getIteration().getDescription().getMethodName(); } }; } }
@Override public void intercept(final IMethodInvocation invocation) throws Throwable { Statement stat = createBaseStatement(invocation); for (FieldInfo field : ruleFields) { TestRule rule = (TestRule) getRuleInstance(field, invocation.getInstance()); stat = rule.apply(stat, invocation.getIteration().getDescription()); } stat.evaluate(); } }