« 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

Maybe you forgot to assert them and you don't even call the assertions on them.

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

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

My test case works correctly if I define all expectations(it passes) or if I do not define some of the expectations(it fails). But if I define some additional expectations using one of , I expect test to fail as these methods are not there in actual implementation. But still the test passes.
 
Thanks
Ashutosh

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