P
PeterS
Hi together,
I am using jMock for doing my unit tests and it works fine. But there
is one point I do not know how to solve it. I want to test a method (
e.g. "testMethod")in my object which calls another method (e.g.
"anotherMethod") of the same object. I do not want to execute
anotherMethod it´s own code. Instead it shall return a value
controlled by the test case class. Can someone tell me what I have to
do to achieve this aim with jMock?
Many thanks
With best regards
Peter
I am using jMock for doing my unit tests and it works fine. But there
is one point I do not know how to solve it. I want to test a method (
e.g. "testMethod")in my object which calls another method (e.g.
"anotherMethod") of the same object. I do not want to execute
anotherMethod it´s own code. Instead it shall return a value
controlled by the test case class. Can someone tell me what I have to
do to achieve this aim with jMock?
Many thanks
With best regards
Peter