Skip to content

Commit d01eafe

Browse files
committed
CollectionServiceImplTest: propagate positiveLong().
Addressed to #300 No functional changes.
1 parent 4190c9c commit d01eafe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/groovy/ru/mystamps/web/service/CollectionServiceImplTest.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
*/
1818
package ru.mystamps.web.service
1919

20+
import static io.qala.datagen.RandomShortApi.positiveLong
21+
2022
import spock.lang.Specification
2123
import spock.lang.Unroll
2224

@@ -224,7 +226,7 @@ class CollectionServiceImplTest extends Specification {
224226

225227
def 'countCollectionsOfUsers() should call dao and return result'() {
226228
given:
227-
long expectedResult = Long.MAX_VALUE
229+
long expectedResult = positiveLong()
228230
when:
229231
long serviceResult = service.countCollectionsOfUsers()
230232
then:
@@ -247,7 +249,7 @@ class CollectionServiceImplTest extends Specification {
247249
def 'countUpdatedSince() should invoke dao, pass argument and return result from dao'() {
248250
given:
249251
Date expectedDate = new Date()
250-
long expectedResult = 47
252+
long expectedResult = positiveLong()
251253
when:
252254
long result = service.countUpdatedSince(expectedDate)
253255
then:

0 commit comments

Comments
 (0)