Slightly different topic, but how do you write tests at the component level?

Short: Don't. Instead, write code that can be tested independently.
Long: http://pragmaticprogrammer.com/starter_kit/utj (for example)


My WOComponent classes need a WOContext in the constructor. And there needs to be a running applicaiton, or else you run into NullPointerExceptions.

If you insist and are using WOUnitTest: the test superclass WOUTTestCase implements pageWithName(String) which can be used for this purpose.


Christian

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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