File tree 1 file changed +3
-3
lines changed
src/test/groovy/ru/mystamps/web/feature/country
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -456,17 +456,17 @@ class CountryServiceImplTest extends Specification {
456
456
457
457
def ' getStatisticsOf() should throw exception when collection id is null' () {
458
458
when :
459
- service. getStatisticsOf(null , ' whatever ' )
459
+ service. getStatisticsOf(null , Random . lang() )
460
460
then :
461
461
IllegalArgumentException ex = thrown()
462
462
ex. message == ' Collection id must be non null'
463
463
}
464
464
465
465
def ' getStatisticsOf() should pass arguments to dao' () {
466
466
given :
467
- Integer expectedCollectionId = 17
467
+ Integer expectedCollectionId = Random . id()
468
468
and :
469
- String expectedLang = ' expected '
469
+ String expectedLang = Random . lang()
470
470
when :
471
471
service. getStatisticsOf(expectedCollectionId, expectedLang)
472
472
then :
You can’t perform that action at this time.
0 commit comments