File tree 1 file changed +3
-3
lines changed
src/test/groovy/ru/mystamps/web/feature/category
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -473,17 +473,17 @@ class CategoryServiceImplTest extends Specification {
473
473
474
474
def ' getStatisticsOf() should throw exception when collection id is null' () {
475
475
when :
476
- service. getStatisticsOf(null , ' whatever ' )
476
+ service. getStatisticsOf(null , Random . lang() )
477
477
then :
478
478
IllegalArgumentException ex = thrown()
479
479
ex. message == ' Collection id must be non null'
480
480
}
481
481
482
482
def ' getStatisticsOf() should pass arguments to dao' () {
483
483
given :
484
- Integer expectedCollectionId = 15
484
+ Integer expectedCollectionId = Random . id()
485
485
and :
486
- String expectedLang = ' expected '
486
+ String expectedLang = Random . lang()
487
487
when :
488
488
service. getStatisticsOf(expectedCollectionId, expectedLang)
489
489
then :
You can’t perform that action at this time.
0 commit comments