I am new to testing.
I want to check my CorrectionService.CorrectPerson(Long personId) method. The implementation has not been written yet, but this is what it will do:
CorrectionService will call the AddressDAO method, which will remove the Adress part that has a Person . One Person has many Address es
I'm not sure if the main structure should be my CorrectionServiceTest.testCorrectPerson .
Also, please do / do not confirm that in this test I do not need to check if the addresses are really deleted (should be done in AddressDaoTest ), only that the DAO method was called.
thanks
source share