Class ScenarioModelHolder


  • public class ScenarioModelHolder
    extends java.lang.Object
    Holds report models mapped by test class names. This class is a singleton and thread-safe
    • 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 the ReportModel 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 the ReportModel for the given test class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScenarioModelHolder

        public ScenarioModelHolder()
    • Method Detail

      • getReportModel

        public com.tngtech.jgiven.report.model.ReportModel getReportModel​(java.lang.Class<? extends java.lang.Object> testClass)
        Returns the ReportModel 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 the ReportModel for the given test class and removes it.