Skip to content

Commit

Permalink
refactor: remove unused TestObjects.createRawParsedDataDto() method
Browse files Browse the repository at this point in the history
Should be in 38a1263 commit.

Part of #1668
  • Loading branch information
php-coder committed Mar 13, 2024
1 parent 0b7076a commit 79d7fbb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
22 changes: 0 additions & 22 deletions src/test/java/ru/mystamps/web/service/TestObjects.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@
import ru.mystamps.web.feature.series.SeriesInGalleryDto;
import ru.mystamps.web.feature.series.SeriesInfoDto;
import ru.mystamps.web.feature.series.importing.ImportRequestFullInfo;
import ru.mystamps.web.feature.series.importing.RawParsedDataDto;
import ru.mystamps.web.feature.series.importing.sale.SeriesSaleParsedDataDto;
import ru.mystamps.web.feature.series.importing.sale.SeriesSalesParsedDataDbDto;
import ru.mystamps.web.feature.site.SuspiciousActivityDto;
import ru.mystamps.web.tests.Random;

import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Date;

import static io.qala.datagen.RandomShortApi.bool;
Expand Down Expand Up @@ -203,26 +201,6 @@ public static EntityWithIdDto createEntityWithIdDto() {
return new EntityWithIdDto(Random.id(), TEST_ENTITY_NAME);
}

public static RawParsedDataDto createRawParsedDataDto() {
return new RawParsedDataDto(
Random.categoryName(),
Random.countryName(),
Collections.singletonList(Random.url()),
Random.issueYear().toString(),
Random.quantity().toString(),
String.valueOf(Random.perforated()),
Random.michelNumbers().toString(),
Random.sellerName(),
Random.url(),
String.valueOf(Random.price()),
Random.currency().toString(),
String.valueOf(Random.price()),
// FIXME: alternative currency shouldn't match with currency
Random.currency().toString(),
Random.seriesCondition().toString()
);
}

public static EntityWithParentDto createEntityWithParentDto() {
String name = Random.categoryName();
String parentName = Random.participantGroupName();
Expand Down
4 changes: 0 additions & 4 deletions src/test/java/ru/mystamps/web/tests/Random.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@ public static List<String> importRequestStatuses(int numToReturn) {
return sampleMultiple(numToReturn, STATUSES);
}

public static Set<String> michelNumbers() {
return catalogNumbers();
}

public static Set<String> solovyovNumbers() {
return catalogNumbers();
}
Expand Down

0 comments on commit 79d7fbb

Please sign in to comment.