Class TestBenchScenario
java.lang.Object
com.vaadin.copilot.testbenchgenerator.TestBenchScenario
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TestBenchScenariofrom(com.fasterxml.jackson.databind.JsonNode json) Converts the given JSON to Scenario.getItems()
-
Constructor Details
-
TestBenchScenario
public TestBenchScenario()
-
-
Method Details
-
getItems
-
getImports
-
getQualifiedClassName
-
getMethodName
-
from
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
-