private Object runBaseObjectMethod(final Object obj, final Method method, final Object[] args, final MethodProxy proxy) throws Throwable { return invokeMethod(obj, args, proxy); }
private Object runBaseObjectMethod(final Object obj, final Method method, final Object[] args, final MethodProxy proxy) throws Throwable { return invokeMethod(obj, args, proxy); }
private Object runBaseObjectMethod(final Object obj, final Method method, final Object[] args, final MethodProxy proxy) throws Throwable { return invokeMethod(obj, args, proxy); }
private Object runIfNestedMethodsShouldBeRun(Object obj, Method method, Object[] args, MethodProxy proxy) { Object result = null; try { if (!TestAnnotations.shouldSkipNested(method)) { result = invokeMethod(obj, args, proxy); } } catch (Throwable anyException) { LOGGER.trace("Ignoring exception thrown during a skipped test", anyException); } return result; }
private Object runIfNestedMethodsShouldBeRun(Object obj, Method method, Object[] args, MethodProxy proxy) { Object result = null; try { if (shouldRunNestedMethodsIn(method)) { result = invokeMethod(obj, args, proxy); } } catch (Throwable anyException) { LOGGER.trace("Ignoring exception thrown during a skipped test", anyException); } return result; }
private Object runIfNestedMethodsShouldBeRun(Object obj, Method method, Object[] args, MethodProxy proxy) { Object result = null; try { if (!TestAnnotations.shouldSkipNested(method)) { result = invokeMethod(obj, args, proxy); } } catch (Throwable anyException) { LOGGER.trace("Ignoring exception thrown during a skipped test", anyException); } return result; }
private Object invokeMethodAndNotifyFailures(Object obj, Method method, Object[] args, MethodProxy proxy, Object result) throws Throwable { try { result = invokeMethod(obj, args, proxy); } catch (Throwable generalException) { error = generalException; Throwable assertionError = forError(error).convertToAssertion(); notifyStepStarted(method, args); notifyOfStepFailure(method, args, assertionError); } return result; }
private Object invokeMethodAndNotifyFailures(Object obj, Method method, Object[] args, MethodProxy proxy, Object result) throws Throwable { try { result = invokeMethod(obj, args, proxy); } catch (Throwable generalException) { error = SerenityWebDriverException.detachedCopyOf(generalException); Throwable assertionError = forError(error).convertToAssertion(); notifyStepStarted(method, args); notifyOfStepFailure(method, args, assertionError); } return result; }
private Object executeTestStepMethod(Object obj, Method method, Object[] args, MethodProxy proxy, Object result) throws Throwable { try { result = invokeMethod(obj, args, proxy); notifyStepFinishedFor(method, args); } catch(PendingStepException pendingStep) { notifyStepPending(pendingStep.getMessage()); } catch(IgnoredStepException ignoredStep) { notifyStepIgnored(ignoredStep.getMessage()); } catch(AssumptionViolatedException assumptionViolated) { notifyAssumptionViolated(assumptionViolated.getMessage()); } Preconditions.checkArgument(true); return result; }
private Object executeTestStepMethod(Object obj, Method method, Object[] args, MethodProxy proxy, Object result) throws Throwable { try { result = invokeMethod(obj, args, proxy); notifyStepFinishedFor(method, args); } catch (PendingStepException pendingStep) { notifyStepPending(pendingStep.getMessage()); } catch (IgnoredStepException ignoredStep) { notifyStepIgnored(ignoredStep.getMessage()); } catch (AssumptionViolatedException assumptionViolated) { notifyAssumptionViolated(assumptionViolated.getMessage()); } Preconditions.checkArgument(true); return result; }
private Object executeTestStepMethod(Object obj, Method method, Object[] args, MethodProxy proxy, Object result) throws Throwable { try { result = invokeMethod(obj, args, proxy); notifyStepFinishedFor(method, args); } catch(PendingStepException pendingStep) { notifyStepPending(pendingStep.getMessage()); } catch(IgnoredStepException ignoredStep) { notifyStepIgnored(ignoredStep.getMessage()); } catch(AssumptionViolatedException assumptionViolated) { notifyAssumptionViolated(assumptionViolated.getMessage()); } Preconditions.checkArgument(true); return result; }