Skip to content

Commit 54b9e60

Browse files
committed
refactor: remove unused Random.listOfEntityWithParentDto() method
Should be in 1d7c82d commit. The following issue won't be fixed: Closes #926 Part of #1668
1 parent c10249b commit 54b9e60

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/test/java/ru/mystamps/web/service/TestObjects.java

-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*/
1818
package ru.mystamps.web.service;
1919

20-
import ru.mystamps.web.common.EntityWithParentDto;
2120
import ru.mystamps.web.common.LinkEntityDto;
2221
import ru.mystamps.web.feature.account.AddUserDbDto;
2322
import ru.mystamps.web.feature.account.UserDetails;
@@ -127,12 +126,6 @@ public static EntityWithIdDto createEntityWithIdDto() {
127126
return new EntityWithIdDto(Random.id(), TEST_ENTITY_NAME);
128127
}
129128

130-
public static EntityWithParentDto createEntityWithParentDto() {
131-
String name = Random.categoryName();
132-
String parentName = Random.participantGroupName();
133-
return new EntityWithParentDto(Random.id().toString(), name, parentName);
134-
}
135-
136129
public static SeriesSalesParsedDataDbDto createSeriesSalesParsedDataDbDto() {
137130
SeriesSalesParsedDataDbDto dto = new SeriesSalesParsedDataDbDto();
138131

src/test/java/ru/mystamps/web/tests/Random.java

-19
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import io.qala.datagen.RandomShortApi;
2222
import org.apache.commons.lang3.StringUtils;
2323
import ru.mystamps.web.common.Currency;
24-
import ru.mystamps.web.common.EntityWithParentDto;
2524
import ru.mystamps.web.common.SlugUtils;
2625
import ru.mystamps.web.feature.account.AccountValidation;
2726
import ru.mystamps.web.feature.category.CategoryValidation;
@@ -166,12 +165,6 @@ public static String participantName() {
166165
).english();
167166
}
168167

169-
// @todo #738 Random.participantGroupName(): make the generated names conform to
170-
// the validation rules (when they will appear)
171-
public static String participantGroupName() {
172-
return name();
173-
}
174-
175168
public static String sellerName() {
176169
return participantName();
177170
}
@@ -241,18 +234,6 @@ public static List<EntityWithIdDto> listOfEntityWithIdDto() {
241234
);
242235
}
243236

244-
public static List<EntityWithParentDto> listOfEntityWithParentDto() {
245-
final int minSize = 1;
246-
final int maxSize = 3;
247-
int size = integer(minSize, maxSize);
248-
return sampleMultiple(
249-
size,
250-
TestObjects.createEntityWithParentDto(),
251-
TestObjects.createEntityWithParentDto(),
252-
TestObjects.createEntityWithParentDto()
253-
);
254-
}
255-
256237
public static String jsoupLocator() {
257238
return sample("#id", "a[href]", "img[src$=.png]", "div#logo");
258239
}

0 commit comments

Comments
 (0)