Howdy,
You can use MockObjects for this type of thing, assuming that you mean
the ServletContext and similar scopes.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: James Black [mailto:[EMAIL PROTECTED]
>Sent: Monday, December 22, 2003 7:11 AM
>To: Tomcat Users List
>Subject: re: unit testing when application level scoping used
>
>Hello,
>  I am trying to write a unit test for an application I didn't write.
>There are classes in the classes directory I want to test directly.
>
>  The problem is that the application uses application and session
>scoping for some of the classes, so they can reference the instance
>without having passed it into the instant I am trying to test.
>
>  I hope this makes sense, I started to understand what was going on
>last night.
>
>  How can I unit test a non-jsp page, non servlet page, when scoping is
>involved?
>
>  Thank you for any help.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to