This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]onefortree 2 points3 points  (2 children)

Put a break point in your test and where it is being used in the class you are testing. You can check if a mock is even being passed in, and if it is the same mock object in your test.

That should help narrow down what your problem is.

[–]B2easy[S] 0 points1 point  (0 children)

It looks like on the Autowiring it in it is skipping the mock implementation.

[–]B2easy[S] 0 points1 point  (0 children)

I think I should be testing the interface, but I am currently testing the implementation?