File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/test/groovy/ru/mystamps/web/service Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
package ru.mystamps.web.service
19
19
20
+ import static io.qala.datagen.RandomShortApi.positiveLong
21
+
20
22
import spock.lang.Specification
21
23
import spock.lang.Unroll
22
24
@@ -224,7 +226,7 @@ class CollectionServiceImplTest extends Specification {
224
226
225
227
def ' countCollectionsOfUsers() should call dao and return result' () {
226
228
given :
227
- long expectedResult = Long . MAX_VALUE
229
+ long expectedResult = positiveLong()
228
230
when :
229
231
long serviceResult = service. countCollectionsOfUsers()
230
232
then :
@@ -247,7 +249,7 @@ class CollectionServiceImplTest extends Specification {
247
249
def ' countUpdatedSince() should invoke dao, pass argument and return result from dao' () {
248
250
given :
249
251
Date expectedDate = new Date ()
250
- long expectedResult = 47
252
+ long expectedResult = positiveLong()
251
253
when :
252
254
long result = service. countUpdatedSince(expectedDate)
253
255
then :
You can’t perform that action at this time.
0 commit comments