Open rvazquezglez opened 4 years ago
Right, thank you, I added them by mistake, I removed all unnecessary semicolons.
All class attributes by default are private, but didn't know that directly calling .attributeName
will call getters or setters. thanks
I just upload some changes
In Groovy
;
are not needed https://github.com/jsalazare/just-crud/blob/6319a77529cb346e242b4c8952f2eca32089c200/src/test/groovy/com/jsalazar/justcrud/service/UserServiceImplTest.groovy#L44Usually when accessing properties Groovy automatically calls the
getter
method. For example the next line https://github.com/jsalazare/just-crud/blob/6319a77529cb346e242b4c8952f2eca32089c200/src/test/groovy/com/jsalazar/justcrud/service/UserServiceImplTest.groovy#L141can be changed to something like:
Something similar happens for
setter
methods: https://github.com/jsalazare/just-crud/blob/6319a77529cb346e242b4c8952f2eca32089c200/src/test/groovy/com/jsalazar/justcrud/service/UserServiceImplTest.groovy#L165This expression
Calls the
setId
method.