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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/krank% 40logicunited.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to