@@ -841,7 +841,7 @@ class SeriesServiceImplTest extends Specification {
841
841
result == null
842
842
}
843
843
844
- @SuppressWarnings ([ ' ClosureAsLastMethodParameter ' , ' UnnecessaryReturnKeyword ' , ' UnnecessaryObjectReferences' ] )
844
+ @SuppressWarnings (' UnnecessaryObjectReferences' )
845
845
def " findFullInfoById() should return info about series" () {
846
846
given :
847
847
Integer expectedSeriesId = 20
@@ -855,38 +855,17 @@ class SeriesServiceImplTest extends Specification {
855
855
when :
856
856
SeriesDto result = service. findFullInfoById(expectedSeriesId, expectedLang)
857
857
then :
858
- 1 * seriesDao. findByIdAsSeriesFullInfo({ Integer seriesId ->
859
- assert seriesId == expectedSeriesId
860
- return true
861
- }, { String lang ->
862
- assert lang == expectedLang
863
- return true
864
- }) >> expectedInfo
858
+ 1 * seriesDao. findByIdAsSeriesFullInfo(expectedSeriesId, expectedLang) >> expectedInfo
865
859
and :
866
- 1 * michelCatalogService. findBySeriesId({ Integer seriesId ->
867
- assert seriesId == expectedSeriesId
868
- return true
869
- }) >> expectedMichelNumbers
860
+ 1 * michelCatalogService. findBySeriesId(expectedSeriesId) >> expectedMichelNumbers
870
861
and :
871
- 1 * scottCatalogService. findBySeriesId({ Integer seriesId ->
872
- assert seriesId == expectedSeriesId
873
- return true
874
- }) >> expectedScottNumbers
862
+ 1 * scottCatalogService. findBySeriesId(expectedSeriesId) >> expectedScottNumbers
875
863
and :
876
- 1 * yvertCatalogService. findBySeriesId({ Integer seriesId ->
877
- assert seriesId == expectedSeriesId
878
- return true
879
- }) >> expectedYvertNumbers
864
+ 1 * yvertCatalogService. findBySeriesId(expectedSeriesId) >> expectedYvertNumbers
880
865
and :
881
- 1 * gibbonsCatalogService. findBySeriesId({ Integer seriesId ->
882
- assert seriesId == expectedSeriesId
883
- return true
884
- }) >> expectedGibbonsNumbers
866
+ 1 * gibbonsCatalogService. findBySeriesId(expectedSeriesId) >> expectedGibbonsNumbers
885
867
and :
886
- 1 * imageService. findBySeriesId({ Integer seriesId ->
887
- assert seriesId == expectedSeriesId
888
- return true
889
- }) >> expectedImageIds
868
+ 1 * imageService. findBySeriesId(expectedSeriesId) >> expectedImageIds
890
869
and :
891
870
result != null
892
871
result. id == expectedInfo. id
0 commit comments