Hi,
I'm new to mock testing.
I want to test my Service method CorrectionService.CorrectPerson(Long personId)
.
The implementation is not yet written but this it what it will do:
CorrectionService
will call a method of AddressDAO
that will remove some of the Adress
that a Person
has. One Person
has Many Address
es
I'm not sure what the basic structure must be of my CorrectionServiceTest.testCorrectPerson
.
Also please do/not confirm that in this test i do not need to test if the adresses are actually deleted (should be done in a AddressDaoTest
), Only that the DAO method was being called.
Thank you