Skip to content

Commit c1286f9

Browse files
committed
TestObjects: use a random value for user id instead of a constant.
Addressed to #300 No functional changes.
1 parent 2f2ef23 commit c1286f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
// CheckStyle: ignore AvoidStarImportCheck for next 1 line
2525
import ru.mystamps.web.dao.dto.*;
26+
import ru.mystamps.web.tests.Random;
2627

2728
final class TestObjects {
2829
public static final String TEST_ACTIVITY_TYPE = "EventType";
@@ -33,7 +34,6 @@ final class TestObjects {
3334
public static final String TEST_ACTIVITY_REFERER = "http://example.org/referer";
3435
public static final String TEST_ACTIVITY_AGENT = "Some browser";
3536

36-
public static final Integer TEST_USER_ID = 777;
3737
public static final String TEST_EMAIL = "[email protected]";
3838
public static final String TEST_ACTIVATION_KEY = "1234567890";
3939

@@ -133,7 +133,7 @@ public static SeriesFullInfoDto createSeriesFullInfoDto() {
133133
info.getQuantity(),
134134
info.getPerforated(),
135135
"this is a full info",
136-
TEST_USER_ID,
136+
Random.userId(),
137137
TEST_PRICE, Currency.EUR.toString(),
138138
TEST_PRICE, Currency.USD.toString(),
139139
TEST_PRICE, Currency.EUR.toString(),

0 commit comments

Comments
 (0)