private Object skipStepMethod(final Object obj, Method method, final Object[] args, final MethodProxy proxy) throws Exception { if ((aPreviousStepHasFailed() || testAssumptionViolated()) && (!shouldExecuteNestedStepsAfterFailures())) { notifySkippedStepStarted(obj, method, args); notifySkippedStepFinishedFor(method, args); return appropriateReturnObject(obj, method); } else { notifySkippedStepStarted(obj, method, args); return skipTestStep(obj, method, args, proxy); } }
private Object testStepResult(final Object obj, final Method method, final Object[] args, final MethodProxy proxy) throws Throwable { if (!isATestStep(method)) { return runNormalMethod(obj, method, args, proxy); } if (shouldSkip(method)) { notifySkippedStepStarted(method, args); return skipTestStep(obj, method, args, proxy); } else { notifyStepStarted(method, args); return runTestStep(obj, method, args, proxy); } }
private Object testStepResult(final Object obj, final Method method, final Object[] args, final MethodProxy proxy) throws Throwable { if (!isATestStep(method)) { return runNormalMethod(obj, method, args, proxy); } if (shouldSkip(method)) { notifySkippedStepStarted(method, args); return skipTestStep(obj, method, args, proxy); } else { notifyStepStarted(method, args); return runTestStep(obj, method, args, proxy); } }