public String getSpecificationDescription(CommandCall commandCall) { return specificationDescriber.getDescription(commandCall.getResource()); }
public String getSpecificationDescription(CommandCall commandCall) { return specificationDescriber.getDescription(commandCall.getResource()); }
public void start(CommandCall commandCall) { announceBeforeProcessingEvent(commandCall.getResource(), commandCall.getElement()); }
public void finish(CommandCall commandCall) { announceAfterProcessingEvent(commandCall.getResource(), commandCall.getElement()); }
public void start(CommandCall commandCall) { announceBeforeProcessingEvent(commandCall.getResource(), commandCall.getElement()); }
public void finish(CommandCall commandCall) { announceAfterProcessingEvent(commandCall.getResource(), commandCall.getElement()); }
protected CommandCall duplicateCommandForDifferentElement(CommandCall commandCall, Element element) { return new CommandCall( null, commandCall.getCommand(), element, commandCall.getExpression(), commandCall.getResource()); }
protected CommandCall duplicateCommandForDifferentElement(CommandCall commandCall, Element element) { return new CommandCall( null, commandCall.getCommand(), element, commandCall.getExpression(), commandCall.getResource()); }
ResultAnnouncer resultAnnouncer = newRunResultAnnouncer(commandCall.getResource(), element); runStrategy.call(runner, commandCall.getResource(), href, resultAnnouncer, resultRecorder);
ResultAnnouncer resultAnnouncer = newRunResultAnnouncer(commandCall.getResource(), element); runStrategy.call(runner, commandCall.getResource(), href, resultAnnouncer, resultRecorder);
public void execute(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) { String exampleName = getExampleName(node); boolean isBeforeExample = isBeforeExample(node); resultRecorder.setSpecificationDescription( specificationDescriber.getDescription(node.getResource(), exampleName)); ImplementationStatus status = getImplementationStatus(node); if (!isBeforeExample && status != ImplementationStatus.IGNORED) { announceBeforeExample(exampleName, node.getElement(), resultRecorder, fixture); } try { resultRecorder.setImplementationStatus(status); if (status == ImplementationStatus.IGNORED) { resultRecorder.record(Result.IGNORED); } else { node.getChildren().processSequentially(evaluator, resultRecorder, fixture); } } catch (FailFastException f) { // Ignore - it'll be re-thrown later by the implementation status checker if necessary. } setupCommandForExample(node, resultRecorder, exampleName); if (!isBeforeExample && status != ImplementationStatus.IGNORED) { announceAfterExample(exampleName, node.getElement(), resultRecorder, fixture); } }
public void execute(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder, Fixture fixture) { String exampleName = getExampleName(node); boolean isBeforeExample = isBeforeExample(node); resultRecorder.setSpecificationDescription( specificationDescriber.getDescription(node.getResource(), exampleName)); ImplementationStatus status = getImplementationStatus(node); if (!isBeforeExample && status != ImplementationStatus.IGNORED) { announceBeforeExample(exampleName, node.getElement(), resultRecorder, fixture); } try { resultRecorder.setImplementationStatus(status); if (status == ImplementationStatus.IGNORED) { resultRecorder.record(Result.IGNORED); } else { node.getChildren().processSequentially(evaluator, resultRecorder, fixture); } } catch (FailFastException f) { // Ignore - it'll be re-thrown later by the implementation status checker if necessary. } setupCommandForExample(node, resultRecorder, exampleName); if (!isBeforeExample && status != ImplementationStatus.IGNORED) { announceAfterExample(exampleName, node.getElement(), resultRecorder, fixture); } }