Class TestRecorderScenario

java.lang.Object
com.vaadin.copilot.testrecordergenerator.TestRecorderScenario

public class TestRecorderScenario extends Object
Represents the scenario generated by the test bench record plugin. It contains all the items, imports etc... basically everything needed to create a test
  • Constructor Details

    • TestRecorderScenario

      public TestRecorderScenario()
  • Method Details

    • getItems

      public List<TestRecorderScenarioItem> getItems()
    • getImports

      public List<String> getImports()
    • getQualifiedClassName

      public String getQualifiedClassName()
    • getMethodName

      public String getMethodName()
    • getSuperClassName

      public String getSuperClassName()
    • from

      public static TestRecorderScenario from(tools.jackson.databind.JsonNode json)
      Converts the given JSON to Scenario.
      Parameters:
      json - JSON sent from the UI
      Returns:
      the scenario object
      Throws:
      IllegalArgumentException - when JSON is not formatted well, or a required info is missing