@@ -46,7 +46,6 @@ public final class TestObjects {
46
46
private static final String TEST_URL = "test.example.org" ;
47
47
private static final BigDecimal TEST_PRICE = new BigDecimal ("100.99" );
48
48
49
- private static final Integer TEST_ENTITY_ID = 456 ;
50
49
private static final String TEST_ENTITY_NAME = TEST_NAME ;
51
50
private static final String TEST_ENTITY_SLUG = "test-slug" ;
52
51
@@ -70,7 +69,7 @@ public static UsersActivationDto createUsersActivationDto() {
70
69
}
71
70
72
71
public static LinkEntityDto createLinkEntityDto () {
73
- return new LinkEntityDto (TEST_ENTITY_ID , TEST_ENTITY_SLUG , TEST_ENTITY_NAME );
72
+ return new LinkEntityDto (Random . id () , TEST_ENTITY_SLUG , TEST_ENTITY_NAME );
74
73
}
75
74
76
75
public static AddUserDbDto createAddUserDbDto () {
@@ -101,23 +100,23 @@ public static UserDetails createUserDetails() {
101
100
}
102
101
103
102
public static ImageInfoDto createImageInfoDto () {
104
- return new ImageInfoDto (1 , "PNG" );
103
+ return new ImageInfoDto (Random . id () , "PNG" );
105
104
}
106
105
107
106
public static DbImageDto createDbImageDto () {
108
107
return new DbImageDto ("PNG" , "test" .getBytes (StandardCharsets .UTF_8 ));
109
108
}
110
109
111
110
public static SitemapInfoDto createSitemapInfoDto () {
112
- return new SitemapInfoDto (1 , new Date ());
111
+ return new SitemapInfoDto (Random . id () , new Date ());
113
112
}
114
113
115
114
@ SuppressWarnings ("checkstyle:magicnumber" )
116
115
public static SeriesInfoDto createSeriesInfoDto () {
117
116
return new SeriesInfoDto (
118
- 12 ,
119
- 13 , "test-category" , "Test Category" ,
120
- 14 , "test-country" , "Test Country" ,
117
+ Random . id () ,
118
+ Random . id () , "test-category" , "Test Category" ,
119
+ Random . id () , "test-country" , "Test Country" ,
121
120
15 , 10 , 2000 ,
122
121
16 ,
123
122
true
@@ -144,7 +143,7 @@ public static SeriesFullInfoDto createSeriesFullInfoDto() {
144
143
145
144
@ SuppressWarnings ("checkstyle:magicnumber" )
146
145
public static CollectionInfoDto createCollectionInfoDto () {
147
- return new CollectionInfoDto (101 , "test-user" , "Test User" );
146
+ return new CollectionInfoDto (Random . id () , "test-user" , "Test User" );
148
147
}
149
148
150
149
public static SuspiciousActivityDto createSuspiciousActivityDto () {
@@ -179,7 +178,7 @@ public static PurchaseAndSaleDto createPurchaseAndSaleDto() {
179
178
}
180
179
181
180
public static EntityWithIdDto createEntityWithIdDto () {
182
- return new EntityWithIdDto (TEST_ENTITY_ID , TEST_ENTITY_NAME );
181
+ return new EntityWithIdDto (Random . id () , TEST_ENTITY_NAME );
183
182
}
184
183
185
184
public static ImportRequestDto createImportRequestDto () {
0 commit comments