• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOUnitTest pattern?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: WOUnitTest pattern?
      • From: shaun <email@hidden>
    • Re: WOUnitTest pattern?
      • From: Wolfram Stebel <email@hidden>
References: 
 >WOUnitTest pattern? (From: Wolfram Stebel <email@hidden>)

  • Prev by Date: WOUnitTest pattern?
  • Next by Date: Re: WOUnitTest pattern?
  • Previous by thread: WOUnitTest pattern?
  • Next by thread: Re: WOUnitTest pattern?
  • Index(es):
    • Date
    • Thread