Skip to content

Commit

Permalink
LPS-132769 Sort by mockHttpServletRequest.set* and by usage
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Jun 23, 2021
1 parent acf97f9 commit a12ee25
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,22 +279,21 @@ public void testResponseIsForwardedToLocalized404PageIfGroupNotFound()
PropsValues.class, "LAYOUT_FRIENDLY_URL_PAGE_NOT_FOUND",
layoutFriendlyUrlPageNotFound);

String expectedI18nErrorPath =
StringPool.SLASH + LocaleUtil.SPAIN.getLanguage();

MockHttpServletRequest mockHttpServletRequest =
new MockHttpServletRequest();

mockHttpServletRequest.setServletPath(expectedI18nErrorPath);

mockHttpServletRequest.setAttribute(
WebKeys.COMPANY_ID, _group.getCompanyId());

mockHttpServletRequest.setPathInfo(
StringBundler.concat(
PropsValues.LAYOUT_FRIENDLY_URL_PRIVATE_USER_SERVLET_MAPPING,
"/nonexistingfriendlyurl", RandomTestUtil.randomString()));

String expectedI18nErrorPath =
StringPool.SLASH + LocaleUtil.SPAIN.getLanguage();

mockHttpServletRequest.setServletPath(expectedI18nErrorPath);

MockHttpServletResponse mockHttpServletResponse =
new MockHttpServletResponse();

Expand Down

0 comments on commit a12ee25

Please sign in to comment.