SERG-Delft / andy

Andy assesses student's test code. It's used in CSE1110, TU Delft.
MIT License
78 stars 22 forks source link

Test doubles (assignment: readingProgress) code checks do not recognize verification #222

Closed Fo3nix closed 1 year ago

Fo3nix commented 1 year ago

WhatsApp Image 2023-06-24 at 08 24 09

As seen on the image, I verified for a specific action, and then also verified that no other methods were called for the mocks, including the emailService. The code checks say that there need to be verifications for all of the possible methods in the emailService, which was done. The answer provided does this by checking each method individually with times(1) or never(). My answer should also be a valid way to check methods called.

mauricioaniche commented 1 year ago

As we spoke via email, this isn't a bug in Andy! The rubrics are expecting three calls to this verify, which doesn't happen in the solution code!