Question

I ran into this question that has been asked 3 years ago:

jMock Mocking Classes and Interface

My question is how can you jmock classes that are not interfaces? As far as I know, class jmocking can happen only with @Mock anotation, represented in JMock version which to this day is not yet stable.

Was it helpful?

Solution

jMock cookbook has an entry for you.

Here is the link: http://www.jmock.org/mocking-classes.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top