Skip to content

Commit

Permalink
resolve test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johanah29 committed Nov 13, 2024
1 parent 5634afe commit c7fc8cb
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 =
Expand Down Expand Up @@ -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 --
Expand Down

0 comments on commit c7fc8cb

Please sign in to comment.