Skip to content

Commit

Permalink
refactor: remove unused Random.solovyovNumbers() and zagorskiNumbers(…
Browse files Browse the repository at this point in the history
…) methods

Should be in b7a4051 commit.

Part of #1668
  • Loading branch information
php-coder committed Mar 13, 2024
1 parent 1d80604 commit 17eaee0
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/test/java/ru/mystamps/web/tests/Random.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
import ru.mystamps.web.feature.account.AccountValidation;
import ru.mystamps.web.feature.category.CategoryValidation;
import ru.mystamps.web.feature.country.CountryValidation;
import ru.mystamps.web.feature.participant.EntityWithIdDto;
import ru.mystamps.web.feature.participant.ParticipantValidation;
import ru.mystamps.web.feature.series.SeriesValidation;
import ru.mystamps.web.feature.series.sale.SeriesCondition;
import ru.mystamps.web.feature.site.SiteUrl;
import ru.mystamps.web.service.TestObjects;

import java.math.BigDecimal;
import java.text.ParseException;
Expand All @@ -40,9 +38,6 @@
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import static io.qala.datagen.RandomShortApi.bool;
import static io.qala.datagen.RandomShortApi.integer;
Expand Down Expand Up @@ -195,14 +190,6 @@ public static boolean perforated() {
return bool();
}

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

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

public static String catalogNumber() {
final long maxCatalogNumber = 9999;
return String.valueOf(between(1, maxCatalogNumber).integer());
Expand All @@ -223,16 +210,4 @@ public static String host() {
return sample(SiteUrl.SITE, SiteUrl.PUBLIC_URL);
}

private static Set<String> catalogNumbers() {
final int minSize = 1;
final int maxSize = 7;
final int maxCatalogNumber = 9999;
int size = integer(minSize, maxSize);
int from = integer(1, maxCatalogNumber - maxSize + 1);

return IntStream.rangeClosed(from, from + size)
.mapToObj(String::valueOf)
.collect(Collectors.toSet());
}

}

0 comments on commit 17eaee0

Please sign in to comment.