Skip to content

Commit 688ac0c

Browse files
SamZiemerbrianchandotcom
authored andcommitted
LPD-69470 Correct test class and method names
1 parent 130e2be commit 688ac0c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

modules/apps/document-library/document-library-test/src/testIntegration/java/com/liferay/document/library/app/service/test/DLAppServiceWhenMovingAFileEntryDLWithFileEntryTypeTest.java renamed to modules/apps/document-library/document-library-test/src/testIntegration/java/com/liferay/document/library/app/service/test/DLAppServiceWhenMovingWithDLFileEntryTypeTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @author Roberto Díaz
3535
*/
3636
@RunWith(Arquillian.class)
37-
public class DLAppServiceWhenMovingAFileEntryDLWithFileEntryTypeTest
37+
public class DLAppServiceWhenMovingWithDLFileEntryTypeTest
3838
extends BaseDLAppTestCase {
3939

4040
@ClassRule
@@ -43,7 +43,9 @@ public class DLAppServiceWhenMovingAFileEntryDLWithFileEntryTypeTest
4343
new LiferayIntegrationTestRule();
4444

4545
@Test
46-
public void testShouldHaveSameFileEntryType() throws Exception {
46+
public void testMoveDLFileEntryShouldHaveSameFileEntryType()
47+
throws Exception {
48+
4749
ServiceContext serviceContext =
4850
ServiceContextTestUtil.getServiceContext(group.getGroupId());
4951

@@ -65,12 +67,12 @@ public void testShouldHaveSameFileEntryType() throws Exception {
6567
BaseDLAppTestCase.CONTENT.getBytes(), null, null, null,
6668
serviceContext);
6769

68-
FileEntry copiedFileEntry = dlAppService.moveFileEntry(
70+
FileEntry movedFileEntry = dlAppService.moveFileEntry(
6971
fileEntry.getFileEntryId(),
7072
DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,
7173
ServiceContextTestUtil.getServiceContext(targetGroup.getGroupId()));
7274

73-
DLFileEntry dlFileEntry = (DLFileEntry)copiedFileEntry.getModel();
75+
DLFileEntry dlFileEntry = (DLFileEntry)movedFileEntry.getModel();
7476

7577
Assert.assertEquals(
7678
dlFileEntryType.getFileEntryTypeId(),

0 commit comments

Comments
 (0)