-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,11 @@ | |
@TestInstance(PER_CLASS) | ||
public class ScenarioApiTest { | ||
|
||
@Autowired private MockMvc mvc; | ||
@Autowired | ||
private MockMvc mvc; | ||
|
||
@Autowired private ScenarioRepository scenarioRepository; | ||
@Autowired | ||
private ScenarioRepository scenarioRepository; | ||
|
||
static String SCENARIO_ID; | ||
|
||
|
@@ -59,6 +61,8 @@ void createScenarioTest() throws Exception { | |
// -- PREPARE -- | ||
String name = "My scenario"; | ||
scenarioInput.setName(name); | ||
String from = "[email protected]"; | ||
scenarioInput.setFrom(from); | ||
|
||
// -- EXECUTE -- | ||
String response = | ||
|
@@ -132,6 +136,7 @@ void updateScenarioTest() throws Exception { | |
ScenarioInput scenarioInput = new ScenarioInput(); | ||
String subtitle = "A subtitle"; | ||
scenarioInput.setName(JsonPath.read(response, "$.scenario_name")); | ||
scenarioInput.setFrom(JsonPath.read(response, "$.scenario_mail_from")); | ||
scenarioInput.setSubtitle(subtitle); | ||
|
||
// -- EXECUTE -- | ||
|