File tree 2 files changed +8
-6
lines changed
src/test/groovy/ru/mystamps/web/feature
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -36,18 +36,19 @@ class LegacyUserServiceImplTest extends Specification {
36
36
private UserService service
37
37
private ActivateAccountForm activationForm
38
38
39
+ @SuppressWarnings (' UnnecessaryGetter' )
39
40
def setup () {
40
41
AddUserDbDto user = TestObjects . createAddUserDbDto()
41
42
42
- encoder. encode(_ as String ) >> user. hash
43
+ encoder. encode(_ as String ) >> user. getHash()
43
44
44
45
UsersActivationDto activation = TestObjects . createUsersActivationDto()
45
46
usersActivationService. findByActivationKey(_ as String ) >> activation
46
47
47
48
activationForm = new ActivateAccountForm ()
48
- activationForm. setLogin(user. login )
49
+ activationForm. setLogin(user. getLogin() )
49
50
activationForm. setPassword(TestObjects . TEST_PASSWORD )
50
- activationForm. setName(user. name )
51
+ activationForm. setName(user. getName() )
51
52
activationForm. setActivationKey(TestObjects . TEST_ACTIVATION_KEY )
52
53
53
54
service = new UserServiceImpl (
Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ class LegacyImageServiceImplTest extends Specification {
40
40
imageDao
41
41
)
42
42
43
+ @SuppressWarnings (' UnnecessaryGetter' )
43
44
def setup () {
44
- multipartFile. size >> 1024L
45
- multipartFile. contentType >> ' image/png'
46
- multipartFile. originalFilename >> ' super-image.png'
45
+ multipartFile. getSize() >> 1024L
46
+ multipartFile. getContentType() >> ' image/png'
47
+ multipartFile. getOriginalFilename() >> ' super-image.png'
47
48
imageDao. add(_ as String , _ as String ) >> 17
48
49
}
49
50
You can’t perform that action at this time.
0 commit comments