Skip to content

Commit a7665f4

Browse files
committed
Fix TmsTestCaseMapper to add -copy postfix to duplicated test case names
1 parent da12496 commit a7665f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/epam/ta/reportportal/core/tms/mapper/TmsTestCaseMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ protected TmsTestFolder convertToTmsTestFolder(Long tmsTestFolderId,
123123
@Mapping(target = "testItems", ignore = true)
124124
@Mapping(target = "createdAt", ignore = true)
125125
@Mapping(target = "updatedAt", ignore = true)
126-
@Mapping(target = "name", source = "originalTestCase.name")
126+
@Mapping(target = "name", expression = "java(originalTestCase.getName() + \"-copy\")")
127127
@Mapping(target = "priority", source = "originalTestCase.priority")
128128
@Mapping(target = "description", source = "originalTestCase.description")
129129
@Mapping(target = "testFolder", source = "targetFolder")
130130
public abstract TmsTestCase duplicateTestCase(TmsTestCase originalTestCase,
131131
TmsTestFolder targetFolder);
132-
}
132+
}

0 commit comments

Comments
 (0)