Skip to content

Commit

Permalink
LPS-123159 Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dacousalr authored and brianchandotcom committed Nov 26, 2020
1 parent 80e8218 commit 809199f
Showing 1 changed file with 7 additions and 7 deletions.
Expand Up @@ -104,8 +104,8 @@ public void setUp() throws Exception {

@Test
public void testGetRedirect() throws Exception {
_testGetRedirectWithAssetPublisherPortlet(false);
_testGetRedirectWithAssetPublisherPortlet(true);
_testGetRedirectWithPortletFriendlyURL(false);
_testGetRedirectWithPortletFriendlyURL(true);

_testGetRedirectWithControlPanelURL(false);
_testGetRedirectWithControlPanelURL(true);
Expand Down Expand Up @@ -151,7 +151,7 @@ private String _getFriendlyURLSeparatorPart(Locale locale, String separator)
return separator + friendlyURLMap.get(locale);
}

private void _testGetRedirectWithAssetPublisherPortlet(boolean i18n)
private void _testGetRedirectWithPortletFriendlyURL(boolean i18n)
throws Exception {

Map<Locale, String> friendlyURLMap =
Expand All @@ -161,12 +161,12 @@ private void _testGetRedirectWithAssetPublisherPortlet(boolean i18n)
_group.getDefaultLanguageId());

String path =
_ASSET_PUBLISHER_URL_PART + friendlyURLMap.get(defaultLocale);
_PORTLET_FRIENDLY_URL_PART_ASSET_PUBLISHER + friendlyURLMap.get(defaultLocale);

_testGetRedirectWithAssetPublisherPortlet(i18n, path);
_testGetRedirectWithPortletFriendlyURL(i18n, path);
}

private void _testGetRedirectWithAssetPublisherPortlet(
private void _testGetRedirectWithPortletFriendlyURL(
boolean i18n, String path)
throws Exception {

Expand Down Expand Up @@ -287,7 +287,7 @@ private void _testGetRedirectWithFriendlyURL(
"/" + _sourceLocale.getLanguage() + sourceURL);
}

private static final String _ASSET_PUBLISHER_URL_PART =
private static final String _PORTLET_FRIENDLY_URL_PART_ASSET_PUBLISHER =
"/-/asset_publisher/instanceID/content/";

private static final String _FRIENDLY_URL_SEPARATOR_JOURNAL_ARTICLE = "/w/";
Expand Down

0 comments on commit 809199f

Please sign in to comment.