Package com.tngtech.jgiven.junit
Class ScenarioModelHolder
- java.lang.Object
-
- com.tngtech.jgiven.junit.ScenarioModelHolder
-
public class ScenarioModelHolder extends java.lang.Object
Holds report models mapped by test class names. This class is a singleton and thread-safe
-
-
Constructor Summary
Constructors Constructor Description ScenarioModelHolder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.tngtech.jgiven.report.model.ReportModel
getAndRemoveReportModel(java.lang.Class<?> testClass)
Returns theReportModel
for the given test class and removes it.static ScenarioModelHolder
getInstance()
com.tngtech.jgiven.report.model.ReportModel
getReportModel(java.lang.Class<? extends java.lang.Object> testClass)
Returns theReportModel
for the given test class.
-
-
-
Method Detail
-
getInstance
public static ScenarioModelHolder getInstance()
-
getReportModel
public com.tngtech.jgiven.report.model.ReportModel getReportModel(java.lang.Class<? extends java.lang.Object> testClass)
Returns theReportModel
for the given test class. If there is no report model yet, creates a new one.- Parameters:
testClass
- the test class to get the report model for- Returns:
- the report model for the given test class
-
getAndRemoveReportModel
public com.tngtech.jgiven.report.model.ReportModel getAndRemoveReportModel(java.lang.Class<?> testClass)
Returns theReportModel
for the given test class and removes it.
-
-