« Return to Thread: Mocking, expectations

Re: Mocking, expectations

by Nat Pryce :: Rate this Message:

Reply to Author | View in Thread

You're not actually testing anything in that test because you're
mocking the object that you're testing.

--Nat

On 28/03/2009, Indrek Juhkam <indrek@...> wrote:

> Hey.
>
> I have problem with JMock. Can somebody say what's wrong
> http://pastie.org/429898 .
> I'm used to use rspec and mocha in Ruby. So Java seems very strange
> sometimes :).
>
> Indrek
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>


--
http://www.natpryce.com

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

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Mocking, expectations