diff --git a/modules/apps/journal/journal-test/src/testIntegration/java/com/liferay/journal/service/test/JournalArticleLocalServiceTest.java b/modules/apps/journal/journal-test/src/testIntegration/java/com/liferay/journal/service/test/JournalArticleLocalServiceTest.java index 49387770ac0823..765efca167fc47 100644 --- a/modules/apps/journal/journal-test/src/testIntegration/java/com/liferay/journal/service/test/JournalArticleLocalServiceTest.java +++ b/modules/apps/journal/journal-test/src/testIntegration/java/com/liferay/journal/service/test/JournalArticleLocalServiceTest.java @@ -184,15 +184,15 @@ public void testAddArticleWithExistingExternalReferenceCode() public void testAddArticleWithoutFriendlyURLWithTitleWithTrailingSlashes() throws Exception { + Locale defaultLocale = _portal.getSiteDefaultLocale( + _group.getGroupId()); + ServiceContext serviceContext = ServiceContextTestUtil.getServiceContext(); serviceContext.setCommand(Constants.ADD); serviceContext.setLayoutFullURL("http://localhost"); - Locale defaultLocale = _portal.getSiteDefaultLocale( - _group.getGroupId()); - JournalArticle journalArticle = JournalTestUtil.addArticle( null, _group.getGroupId(), JournalFolderConstants.DEFAULT_PARENT_FOLDER_ID,