Hi all,
I am having a problem with EasyMock, I have a
test that requires the mocking of an object (I have achived this).
However the Object (A) then calls another object (I) (which has an interface) which should throw an exception.
Now both A and I both implment the same interface, what has happened is i am wrapping/decorating(?) an object of type I to provide some logging.
So the client calls A.methodX, which maps though to I.methodX, so I would expect two calls to methodX.
however EasyMock only seems to recognise the calls to A and not to the internal object of A that is represented by I.
Sorry I dont know how to make that make anymore sense.
Any ideas?
I am on the verge of just making teh whole test use class Extension.