com.tngtech.jgiven.report.model
Class ScenarioModelBuilder

java.lang.Object
  extended by com.tngtech.jgiven.report.model.ScenarioModelBuilder
All Implemented Interfaces:
com.tngtech.jgiven.impl.intercept.ScenarioListener

public class ScenarioModelBuilder
extends java.lang.Object
implements com.tngtech.jgiven.impl.intercept.ScenarioListener


Constructor Summary
ScenarioModelBuilder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioModelBuilder

public ScenarioModelBuilder()
Method Detail

setReportModel

public void setReportModel(ReportModel reportModel)

scenarioStarted

public void scenarioStarted(java.lang.String description)
Specified by:
scenarioStarted in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

addStepMethod

public void addStepMethod(java.lang.reflect.Method paramMethod,
                          java.util.List<NamedArgument> arguments,
                          com.tngtech.jgiven.impl.intercept.InvocationMode mode)

introWordAdded

public void introWordAdded(java.lang.String value)
Specified by:
introWordAdded in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

writeStep

public void writeStep(StepModel stepModel)

stepMethodInvoked

public void stepMethodInvoked(java.lang.reflect.Method method,
                              java.util.List<NamedArgument> arguments,
                              com.tngtech.jgiven.impl.intercept.InvocationMode mode)
Specified by:
stepMethodInvoked in interface com.tngtech.jgiven.impl.intercept.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)

setSuccess

public void setSuccess(boolean success)

setErrorMessage

public void setErrorMessage(java.lang.String message)

stepMethodFailed

public void stepMethodFailed(java.lang.Throwable t)
Specified by:
stepMethodFailed in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

stepMethodFinished

public void stepMethodFinished(long durationInNanos)
Specified by:
stepMethodFinished in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

scenarioFailed

public void scenarioFailed(java.lang.Throwable e)
Specified by:
scenarioFailed in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

scenarioStarted

public void scenarioStarted(java.lang.reflect.Method method,
                            java.util.List<NamedArgument> namedArguments)
Specified by:
scenarioStarted in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

addTags

public void addTags(java.lang.annotation.Annotation... annotations)

toTags

public java.util.List<Tag> toTags(java.lang.annotation.Annotation annotation)

fromIsTag

public TagConfiguration fromIsTag(IsTag isTag,
                                  java.lang.annotation.Annotation annotation)

scenarioFinished

public void scenarioFinished()
Specified by:
scenarioFinished in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

attachmentAdded

public void attachmentAdded(Attachment attachment)
Specified by:
attachmentAdded in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

extendedDescriptionUpdated

public void extendedDescriptionUpdated(java.lang.String extendedDescription)
Specified by:
extendedDescriptionUpdated in interface com.tngtech.jgiven.impl.intercept.ScenarioListener

getReportModel

public ReportModel getReportModel()

getScenarioModel

public ScenarioModel getScenarioModel()

getScenarioCaseModel

public ScenarioCaseModel getScenarioCaseModel()