@Override protected Statement methodBlock(FrameworkMethod method) { return super.methodBlock(method); } }
@Override public Statement methodBlock(FrameworkMethod method) { final Statement statement = super.methodBlock(method); return new Statement() { @Override public void evaluate() throws Throwable { try { statement.evaluate(); handleDataPointSuccess(); } catch (AssumptionViolatedException e) { handleAssumptionViolation(e); } catch (Throwable e) { reportParameterizedError(e, complete .getArgumentStrings(nullsOk())); } } }; }
@Override public Statement methodBlock(FrameworkMethod method) { final Statement statement = super.methodBlock(method); return new Statement() { @Override public void evaluate() throws Throwable { try { statement.evaluate(); handleDataPointSuccess(); } catch (AssumptionViolatedException e) { handleAssumptionViolation(e); } catch (Throwable e) { reportParameterizedError(e, complete .getArgumentStrings(nullsOk())); } } }; }
@Override public void evaluate() throws Throwable { methodBlock(method).evaluate(); } };
@Override protected Statement methodBlock(FrameworkMethod method) { log.info( Test.class.getSimpleName() + ": " + method.getName() ); final Statement originalMethodBlock = super.methodBlock( method ); final ExtendedFrameworkMethod extendedFrameworkMethod = (ExtendedFrameworkMethod) method; return new FailureExpectedHandler( originalMethodBlock, testClassMetadata, extendedFrameworkMethod, testInstance ); }
@Override protected void runChild(final FrameworkMethod method, RunNotifier notifier) { Description description = describeChild(method); if (method.getAnnotation(Ignore.class) != null) { notifier.fireTestIgnored(description); } else { runLeaf(methodBlock(method), description, notifier); } }
@Override protected Statement methodBlock(FrameworkMethod method) { Statement statement = super.methodBlock( method ); processAnnotations( method ); if ( !annotationProcessorNeedsToRun() ) { return statement; } return new CompilationStatement( statement, testEntities, preCompileEntities, mappingFiles, processorOptions, ignoreCompilationErrors ); }
@Override public Statement methodBlock(FrameworkMethod method) { final Statement statement = super.methodBlock(method); return new Statement() { @Override public void evaluate() throws Throwable { try { statement.evaluate(); handleDataPointSuccess(); } catch (AssumptionViolatedException e) { handleAssumptionViolation(e); } catch (Throwable e) { reportParameterizedError(e, complete .getArgumentStrings(nullsOk())); } } }; }
private Statement methodBlock() { Statement statement = super.methodBlock(method); return new Statement() { @Override public void evaluate() throws Throwable { try { statement.evaluate(); onSuccess.accept(null); } catch (AssumptionViolatedException e) { onAssumptionViolated.accept(e); } catch (AssertionError e) { Runnable repeat = () -> { try { statement.evaluate(); } catch (Throwable ignored) { } }; onFailure.accept(e, repeat); } catch (Throwable t) { reportErrorWithArguments(t); } } }; }
@Override public Statement methodBlock(FrameworkMethod method) { return method.getAnnotation(Test.class) != null ? super.methodBlock(method) : new PropertyStatement(method, getTestClass(), repo, distro, logger); }
@Override protected void runChild(final FrameworkMethod method, RunNotifier notifier) { Description description = describeChild(method); if (method.getAnnotation(Ignore.class) != null) { notifier.fireTestIgnored(description); } else { runLeaf(methodBlock(method), description, notifier); } }
protected Statement createStatement(FrameworkMethod method) { return super.methodBlock(method); }
protected Statement methodBlock(FrameworkMethod method) { Statement statement = super.methodBlock(method); if (statement instanceof Fail) { return statement; } statement = withParentBefores(statement); statement = withParentAfters(statement); return statement; }
@Override protected Statement methodBlock(FrameworkMethod method) { Statement statement = super.methodBlock(method); return new FXTestStatement(statement); } }
@Override protected Statement methodBlock(final FrameworkMethod method) { log.info("------------------- {} -------------------", method.getName()); return super.methodBlock(method); } }
@Override protected Statement methodBlock(FrameworkMethod method) { final Statement next = super.methodBlock(method); return new CompilationStatement(next, method); }
@Override public Statement methodBlock(FrameworkMethod method) { return method.getAnnotation(Test.class) != null ? super.methodBlock(method) : new PropertyStatement(method, getTestClass(), repo, distro, logger); }
@Override protected void runChild(final FrameworkMethod method, RunNotifier notifier) { Description description = describeChild(method); if (isIgnored(method)) { notifier.fireTestIgnored(description); } else { runLeaf(methodBlock(method), description, notifier); } }
@Override protected Statement methodBlock(FrameworkMethod method) { Statement statement = super.methodBlock(method); assert test != null; Object instance = test; while ((instance = nextParent(instance)) != null) { statement = withOuterBefores(statement, instance); statement = withOuterAfters(statement, instance); statement = withOuterRules(statement, instance); } return statement; }
@Override protected void runChild(final FrameworkMethod method, RunNotifier notifier) { Description description = describeChild(method); if (method.getAnnotation(Ignore.class) != null) { notifier.fireTestIgnored(description); } else { runLeaf(methodBlock(method), description, notifier); } }