com.tngtech.jgiven.report.model
Class ReportModelBuilder
java.lang.Object
com.tngtech.jgiven.report.model.ReportModelBuilder
- All Implemented Interfaces:
- ScenarioListener
public class ReportModelBuilder
- extends java.lang.Object
- implements ScenarioListener
Builds up the report model while the scenario is executed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReportModelBuilder
public ReportModelBuilder()
ReportModelBuilder
public ReportModelBuilder(ReportModel scenarioCollectionModel)
setReportModel
public void setReportModel(ReportModel reportModel)
scenarioStarted
public void scenarioStarted(java.lang.String description)
- Specified by:
scenarioStarted
in interface ScenarioListener
addStepMethod
public void addStepMethod(java.lang.reflect.Method paramMethod,
java.util.List<NamedArgument> arguments,
InvocationMode mode)
introWordAdded
public void introWordAdded(java.lang.String fillWord)
- Specified by:
introWordAdded
in interface ScenarioListener
writeStep
public void writeStep(StepModel stepModel)
stepMethodInvoked
public void stepMethodInvoked(java.lang.reflect.Method paramMethod,
java.util.List<NamedArgument> arguments,
InvocationMode mode)
- Specified by:
stepMethodInvoked
in interface ScenarioListener
setMethodName
public void setMethodName(java.lang.String methodName)
setArguments
public void setArguments(java.util.List<java.lang.String> arguments)
setParameterNames
public void setParameterNames(java.util.List<java.lang.String> parameterNames)
setClassName
public void setClassName(java.lang.String name)
setSuccess
public void setSuccess(boolean success)
setErrorMessage
public void setErrorMessage(java.lang.String message)
getScenarioCollectionModel
public ReportModel getScenarioCollectionModel()
stepMethodFailed
public void stepMethodFailed(java.lang.Throwable t)
- Specified by:
stepMethodFailed
in interface ScenarioListener
stepMethodFinished
public void stepMethodFinished(long durationInNanos)
- Specified by:
stepMethodFinished
in interface ScenarioListener
scenarioFailed
public void scenarioFailed(java.lang.Throwable e)
- Specified by:
scenarioFailed
in interface ScenarioListener
scenarioStarted
public void scenarioStarted(java.lang.reflect.Method method,
java.util.List<NamedArgument> namedArguments)
- Specified by:
scenarioStarted
in interface ScenarioListener
toTags
public java.util.List<Tag> toTags(java.lang.annotation.Annotation annotation)
scenarioFinished
public void scenarioFinished()
- Specified by:
scenarioFinished
in interface ScenarioListener
setTestClass
public void setTestClass(java.lang.Class<?> testClass)