Dave Tolls wrote:Your mocking for save(ex1) uses an Exercise object that looks like it has an id of "1"?
Dave Tolls wrote:The actual call to save appears to be using an Exercise object with a random UUID (called exerciseID).
I can't see how it can match, unless equals ignores the id.
This assumes that Exercise has some form of equals method in the first place.
Dave Tolls wrote:any(Exercise.class) should work, but not seeing the code that apparently didn't work I can't say what happened there.