Skip to content

Commit

Permalink
Update messages in testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed Dec 10, 2023
1 parent b5fcec6 commit db607d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void testResetPassword() throws JSONException, IOException {
assertEquals(200, resource.getStatus().getCode());
JSONObject object = new JSONObject(resource.getResponseEntity().getText());
assertEquals(object.get("success"), true);
assertTrue(object.get("message").toString().contains("Email sent to"));
assertTrue(object.get("message").toString().contains("We sent you an email"));
assertEquals(mailsBefore + 1, mailServer.getReceivedEmailSize());

// try it a second time (nervous user)
Expand All @@ -150,7 +150,7 @@ public void testResetPassword() throws JSONException, IOException {
object = new JSONObject(resource.getResponseEntity().getText());
assertEquals(object.get("success"), true);

assertTrue(object.get("message").toString().contains("Email sent to"));
assertTrue(object.get("message").toString().contains("We sent you an email"));
assertEquals(mailsBefore + 2, mailServer.getReceivedEmailSize());

// check correct activtion code is in mail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void testUpdateWithCorrectCredentials() throws JSONException, IOException
assertEquals(200, resource.getStatus().getCode());
JSONObject object = new JSONObject(resource.getResponseEntity().getText());
assertEquals(object.get("success"), true);
assertTrue(object.get("message").toString().contains("User profile sucessfully updated"));
assertTrue(object.get("message").toString().contains("User profile successfully updated"));
resource.release();

// try login with old password
Expand Down

0 comments on commit db607d8

Please sign in to comment.