Skip to content

Commit

Permalink
Update changed password in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-g committed Jun 13, 2018
1 parent 56fc983 commit b47bb96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void correctSolution() throws Exception {

.andExpect(status().isOk())
.andExpect(jsonPath("$.lessonCompleted", is(true)))
.andExpect(jsonPath("$.feedback", containsString("dave")));
.andExpect(jsonPath("$.feedback", containsString("passW0rD")));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void setup() throws Exception {
@Test
public void submitCorrectPassword() throws Exception {
mockMvc.perform(MockMvcRequestBuilders.post("/SqlInjection/attack6b")
.param("userid_6b", "dave"))
.param("userid_6b", "passW0rD"))

.andExpect(status().isOk()).andExpect(jsonPath("$.lessonCompleted", is(true)));
}
Expand Down

0 comments on commit b47bb96

Please sign in to comment.