« Return to Thread: Tested object in an Expectation section

Tested object in an Expectation section

by Mac-39 :: Rate this Message:

Reply to Author | View in Thread

Hello there,
I wonder if there is easy way to change jmock lib to allow tested object be
in Expectation section. For example:

context.checking(new Expectations() {{
one (receiverMock1).recv("a"); inSequence(SenderSequence); //mock object
one (senderTest).ack("a"); inSequence(SenderSequence); //tested object
one (receiverMock1).recv("b"); inSequence(SenderSequence); //mock
object }});

I know that jmock is a library for unit testing but I would like to use it
in my project to check how objects are communicating in a sequence. I am
mocking one site and next I am testing sequence for first object. But there
is a problem when this mocked object is calling tested object method.

Sorry for my English. I am waiting for some ideas. Thanks.

Regards,
Mac




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Tested object in an Expectation section

LightInTheBox - Buy quality products at wholesale price!