File tree 1 file changed +3
-3
lines changed
src/test/groovy/ru/mystamps/web/service
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class FilesystemImagePersistenceStrategyTest extends Specification {
45
45
when :
46
46
strategy. save(multipartFile, imageInfoDto)
47
47
then :
48
- 1 * strategy. writeToFile(_ as MultipartFile , _ as Path ) >> {}
48
+ 1 * strategy. writeToFile(_ as MultipartFile , _ as Path ) >> { }
49
49
}
50
50
51
51
@SuppressWarnings ([' ClosureAsLastMethodParameter' , ' UnnecessaryReturnKeyword' ])
@@ -58,7 +58,7 @@ class FilesystemImagePersistenceStrategyTest extends Specification {
58
58
1 * strategy. writeToFile(_ as MultipartFile , { Path path ->
59
59
assert path. parent. toString() == expectedDirectoryName
60
60
return true
61
- }) >> {}
61
+ }) >> { }
62
62
}
63
63
64
64
@SuppressWarnings ([' ClosureAsLastMethodParameter' , ' UnnecessaryReturnKeyword' ])
@@ -73,7 +73,7 @@ class FilesystemImagePersistenceStrategyTest extends Specification {
73
73
1 * strategy. writeToFile(_ as MultipartFile , { Path path ->
74
74
assert path. fileName. toString() == expectedFileName
75
75
return true
76
- }) >> {}
76
+ }) >> { }
77
77
}
78
78
79
79
def " save() should converts IOException to ImagePersistenceException" () {
You can’t perform that action at this time.
0 commit comments