public class ScenarioModelBuilder
extends java.lang.Object
implements com.tngtech.jgiven.impl.intercept.ScenarioListener
| Constructor and Description |
|---|
ScenarioModelBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStepMethod(java.lang.reflect.Method paramMethod,
java.util.List<NamedArgument> arguments,
com.tngtech.jgiven.impl.intercept.InvocationMode mode) |
void |
addTags(java.lang.annotation.Annotation... annotations) |
void |
attachmentAdded(Attachment attachment) |
void |
extendedDescriptionUpdated(java.lang.String extendedDescription) |
TagConfiguration |
fromIsTag(IsTag isTag,
java.lang.annotation.Annotation annotation) |
ReportModel |
getReportModel() |
ScenarioCaseModel |
getScenarioCaseModel() |
ScenarioModel |
getScenarioModel() |
void |
introWordAdded(java.lang.String value) |
void |
scenarioFailed(java.lang.Throwable e) |
void |
scenarioFinished() |
void |
scenarioStarted(java.lang.reflect.Method method,
java.util.List<NamedArgument> namedArguments) |
void |
scenarioStarted(java.lang.String description) |
void |
setArguments(java.util.List<java.lang.String> arguments) |
void |
setErrorMessage(java.lang.String message) |
void |
setMethodName(java.lang.String methodName) |
void |
setParameterNames(java.util.List<java.lang.String> parameterNames) |
void |
setReportModel(ReportModel reportModel) |
void |
setSuccess(boolean success) |
void |
stepMethodFailed(java.lang.Throwable t) |
void |
stepMethodFinished(long durationInNanos) |
void |
stepMethodInvoked(java.lang.reflect.Method method,
java.util.List<NamedArgument> arguments,
com.tngtech.jgiven.impl.intercept.InvocationMode mode) |
java.util.List<Tag> |
toTags(java.lang.annotation.Annotation annotation) |
void |
writeStep(StepModel stepModel) |
public void setReportModel(ReportModel reportModel)
public void scenarioStarted(java.lang.String description)
scenarioStarted in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void addStepMethod(java.lang.reflect.Method paramMethod,
java.util.List<NamedArgument> arguments,
com.tngtech.jgiven.impl.intercept.InvocationMode mode)
public void introWordAdded(java.lang.String value)
introWordAdded in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void writeStep(StepModel stepModel)
public void stepMethodInvoked(java.lang.reflect.Method method,
java.util.List<NamedArgument> arguments,
com.tngtech.jgiven.impl.intercept.InvocationMode mode)
stepMethodInvoked in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void setMethodName(java.lang.String methodName)
public void setArguments(java.util.List<java.lang.String> arguments)
public void setParameterNames(java.util.List<java.lang.String> parameterNames)
public void setSuccess(boolean success)
public void setErrorMessage(java.lang.String message)
public void stepMethodFailed(java.lang.Throwable t)
stepMethodFailed in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void stepMethodFinished(long durationInNanos)
stepMethodFinished in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void scenarioFailed(java.lang.Throwable e)
scenarioFailed in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void scenarioStarted(java.lang.reflect.Method method,
java.util.List<NamedArgument> namedArguments)
scenarioStarted in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void addTags(java.lang.annotation.Annotation... annotations)
public java.util.List<Tag> toTags(java.lang.annotation.Annotation annotation)
public TagConfiguration fromIsTag(IsTag isTag, java.lang.annotation.Annotation annotation)
public void scenarioFinished()
scenarioFinished in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void attachmentAdded(Attachment attachment)
attachmentAdded in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic void extendedDescriptionUpdated(java.lang.String extendedDescription)
extendedDescriptionUpdated in interface com.tngtech.jgiven.impl.intercept.ScenarioListenerpublic ReportModel getReportModel()
public ScenarioModel getScenarioModel()
public ScenarioCaseModel getScenarioCaseModel()