File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/test/groovy/ru/mystamps/web/service Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,17 @@ class DatabaseImagePersistenceStrategyTest extends Specification {
36
36
private final MultipartFile multipartFile = Mock ()
37
37
private final ImageInfoDto imageInfoDto = TestObjects . createImageInfoDto()
38
38
39
- private final ImagePersistenceStrategy strategy = new DatabaseImagePersistenceStrategy (
40
- NOPLogger . NOP_LOGGER ,
41
- imageDataDao
42
- )
39
+ private ImagePersistenceStrategy strategy
40
+
41
+ def setup () {
42
+ strategy = new DatabaseImagePersistenceStrategy (
43
+ NOPLogger . NOP_LOGGER ,
44
+ imageDataDao
45
+ )
46
+
47
+ // init() does nothing except logging but by invoking it we're improving code coverage
48
+ strategy. init()
49
+ }
43
50
44
51
//
45
52
// Tests for save()
You can’t perform that action at this time.
0 commit comments