/** * Turns a method into a human-readable title. */ public String getTitle() { try { return humanize(AnnotatedStepDescription.from(this).getName()); } catch(IllegalArgumentException noMatchingMethod) { return humanize(name); } }
private void recordStep(ExecutedStepDescription description) { if (!latestTestOutcome().isPresent()) { return; } TestStep step = new TestStep(AnnotatedStepDescription.from(description).getName()); startNewGroupIfNested(); setDefaultResultFromAnnotations(step, description); currentStepStack.push(step); recordStepToCurrentTestOutcome(step); }
private void recordStep(ExecutedStepDescription description) { String stepName = AnnotatedStepDescription.from(description).getName(); updateFluentStepStatus(description, stepName); if (justStartedAFluentSequenceFor(description) || notInAFluentSequence()) { TestStep step = new TestStep(stepName); startNewGroupIfNested(); setDefaultResultFromAnnotations(step, description); currentStepStack.push(step); recordStepToCurrentTestOutcome(step); } inFluentStepSequence = AnnotatedStepDescription.from(description).isFluent(); }
private void recordStep(ExecutedStepDescription description) { String stepName = AnnotatedStepDescription.from(description).getName(); updateFluentStepStatus(description, stepName); if (justStartedAFluentSequenceFor(description) || notInAFluentSequence()) { TestStep step = new TestStep(stepName); startNewGroupIfNested(); setDefaultResultFromAnnotations(step, description); currentStepStack.push(step); recordStepToCurrentTestOutcome(step); } inFluentStepSequence = AnnotatedStepDescription.from(description).isFluent(); }