Skip to content

Commit c6f373f

Browse files
committed
DatabaseImagePersistenceStrategyTest: suppress warnings from CodeNarc.
Corrections for 707a25a and 14e11e3 commits.
1 parent 02b968c commit c6f373f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class DatabaseImagePersistenceStrategyTest extends Specification {
115115
result == null
116116
}
117117

118+
@SuppressWarnings(['ClosureAsLastMethodParameter', 'UnnecessaryReturnKeyword'])
118119
def "get() should return result from image data dao"() {
119120
given:
120121
Integer expectedImageId = imageInfoDto.id
@@ -147,6 +148,7 @@ class DatabaseImagePersistenceStrategyTest extends Specification {
147148
result == null
148149
}
149150

151+
@SuppressWarnings(['ClosureAsLastMethodParameter', 'UnnecessaryReturnKeyword'])
150152
def 'getPreview() should return result of image data dao'() {
151153
given:
152154
Integer expectedImageId = imageInfoDto.id

0 commit comments

Comments
 (0)