Author Login
Post Reply
On the website, select the "Other" option in the "Show documentation
for: JUnit 3, JUnit 4, Other" selector at the top-right corner. All
the examples will then show how write tests without extending
MockObjectTestCase.
--Nat
2008/5/9 Steve Freeman <steve@(protected)>:
> In jUnit4 you can use @RunWith(jMock.class) can create a Mockery field.
>
> In jUnit3, you can do your own verifying, it's just more trouble. Have a
> look at the source code for ideas.
>
> S.
>
> On 9 May 2008, at 13:11, Tomljenovic Marko (G2/PJ-PMT2) wrote:
>
>> Hello guys,
>>
>> is there an example (is it possible at all?) how I can write a test case
>> without subclassing from MockObjectTestCase.
>>
>> I cannot subclass from MockObjectTestCase because I am already
>> subclassing from another class.
>>
>> Greetings Marko
>
> Steve Freeman
> Winner of the Agile Alliance Gordon Pask award 2006
>
> http://www.m3p.co.uk
>
> M3P Limited.
> Registered office. 2 Church Street, Burnham, Bucks, SL1 7HZ.
> Company registered in England & Wales. Number 03689627
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email