Skip to content

Commit

Permalink
Fix test for #56
Browse files Browse the repository at this point in the history
  • Loading branch information
kaosko committed Apr 17, 2021
1 parent 245675e commit 2ed05f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public void testUserFilterWithAjaxDeny() throws Exception

Page jsonLoginResponse = webClient.getPage(ajaxRequest);
String ajaxLoginResp = jsonLoginResponse.getWebResponse().getContentAsString();
JSONObject jsonResp = new JSONObject(ajaxLoginResp);
JSONObject jsonResp = new JSONObject(ajaxLoginResp).getJSONObject("_tapestry");
String ajaxRedirectUrl = jsonResp.getString("redirectURL");
assertTrue(ajaxRedirectUrl.startsWith(APP_CONTEXT + "security/login"), "The ajax redirect response '"
+ ajaxRedirectUrl + "' did not start with '" + APP_CONTEXT + "security/login'");
Expand Down

0 comments on commit 2ed05f6

Please sign in to comment.