« Return to Thread: test is not failing for additional expectations

Re: test is not failing for additional expectations

by Panos Konstantinidis :: Rate this Message:

| View in Thread

Are you calling the assertIsSatisfied() method?

--- On Thu, 8/5/10, Ashutosh Kumar <ashutosh.k78@...> wrote:

From: Ashutosh Kumar <ashutosh.k78@...>
Subject: Re: [jmock-user] test is not failing for additional expectations
To: user@...
Date: Thursday, August 5, 2010, 1:34 PM

I am writing this way

oneOf(statement).execute();//This is present in actual method implementation so it isneeded.

oneOf(statement).addBatch();//This is not needed . But test passes whether it is present in   my test code or not. I expect test to fail (saying expected method was not invoked) but this does not happen.

Thanks
Ashutosh


 « Return to Thread: test is not failing for additional expectations