Re: WOUnitTest pattern?
Re: WOUnitTest pattern?
- Subject: Re: WOUnitTest pattern?
- From: Anjo Krank <email@hidden>
- Date: Sat, 13 May 2006 16:54:11 +0200
OTTOMH, either move the actual methods to test elsewhere ie, don't do
nextPage.setValue(context().stringFormValueForKey("foo")) but instead
create a method that takes all needed info as parameters and test
this, or (preferably) create a request with the URL parameters you
want and create the DA manually, then call the methods you want to test.
It would greatly depend on your DAs (eg if they need a session etc)
if you can really test them in a meaningful way, though... just out
of curiosity, what *would* you want to test? I can hardly imagine
what I had in a DA, short of if the parameter names were spelled
correctly that would make a meaningful test.
Cheers, Anjo
Am 13.05.2006 um 16:23 schrieb Wolfram Stebel:
Hi all,
is there some nice pattern how to test DirectActions with unit
testing?
The "problem" starts with how to call the direct actions with
parameters
from unit test.
Any help is appreciated!
regards
Wolfram
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40logicunited.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden