|
24 | 24 | import ru.mystamps.web.feature.account.UsersActivationFullDto; |
25 | 25 | import ru.mystamps.web.feature.image.ImageDto; |
26 | 26 | import ru.mystamps.web.feature.image.ImageInfoDto; |
27 | | -import ru.mystamps.web.feature.series.importing.sale.SeriesSaleParsedDataDto; |
28 | | -import ru.mystamps.web.feature.series.importing.sale.SeriesSalesParsedDataDbDto; |
29 | 27 | import ru.mystamps.web.feature.site.SuspiciousActivityDto; |
30 | 28 | import ru.mystamps.web.tests.Random; |
31 | 29 |
|
32 | 30 | import java.nio.charset.StandardCharsets; |
33 | 31 | import java.util.Date; |
34 | 32 |
|
35 | | -import static io.qala.datagen.RandomShortApi.bool; |
36 | | -import static io.qala.datagen.RandomShortApi.nullOr; |
37 | | - |
38 | 33 | public final class TestObjects { |
39 | 34 | public static final String TEST_ACTIVITY_TYPE = "EventType"; |
40 | 35 | public static final String TEST_ACTIVITY_PAGE = "http://example.org/some/page"; |
@@ -121,51 +116,4 @@ public static SuspiciousActivityDto createSuspiciousActivityDto() { |
121 | 116 | ); |
122 | 117 | } |
123 | 118 |
|
124 | | - public static SeriesSalesParsedDataDbDto createSeriesSalesParsedDataDbDto() { |
125 | | - SeriesSalesParsedDataDbDto dto = new SeriesSalesParsedDataDbDto(); |
126 | | - |
127 | | - boolean existingSeller = bool(); |
128 | | - if (existingSeller) { |
129 | | - dto.setSellerId(Random.id()); |
130 | | - } else { |
131 | | - dto.setSellerName(Random.sellerName()); |
132 | | - dto.setSellerUrl(Random.url()); |
133 | | - } |
134 | | - |
135 | | - dto.setPrice(Random.price()); |
136 | | - dto.setCurrency(Random.currency().toString()); |
137 | | - dto.setCreatedAt(Random.date()); |
138 | | - dto.setUpdatedAt(Random.date()); |
139 | | - return dto; |
140 | | - } |
141 | | - |
142 | | - public static SeriesSaleParsedDataDto createSeriesSaleParsedDataDto() { |
143 | | - Integer sellerId = null; |
144 | | - Integer sellerGroupId = null; |
145 | | - String sellerName = null; |
146 | | - String sellerUrl = null; |
147 | | - |
148 | | - boolean existingSeller = bool(); |
149 | | - if (existingSeller) { |
150 | | - sellerId = Random.id(); |
151 | | - } else { |
152 | | - sellerGroupId = Random.id(); |
153 | | - sellerName = Random.sellerName(); |
154 | | - sellerUrl = Random.url(); |
155 | | - } |
156 | | - |
157 | | - return new SeriesSaleParsedDataDto( |
158 | | - sellerId, |
159 | | - sellerGroupId, |
160 | | - sellerName, |
161 | | - sellerUrl, |
162 | | - Random.price(), |
163 | | - Random.currency(), |
164 | | - Random.price(), |
165 | | - // FIXME: alternative currency shouldn't match with currency |
166 | | - Random.currency(), |
167 | | - nullOr(Random.seriesCondition()) |
168 | | - ); |
169 | | - } |
170 | | - |
171 | 119 | } |
0 commit comments