RE: unit testing when application level scoping used

2003-12-29 Thread Shapira, Yoav
Howdy, >> Cactus works beautifully with regards to servlet context and general >> environment setup. > > Should I instantiate a bean with session scope that is expected to be >present? Yes, you should instantiate it and place it in the session/application context as needed by your webapp. Anot

RE: unit testing when application level scoping used

2003-12-24 Thread James Black
> -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Monday, December 22, 2003 10:03 AM > To: Tomcat Users List > Subject: RE: unit testing when application level scoping used > > Cactus works beautifully with regards to servlet context and

RE: unit testing when application level scoping used

2003-12-22 Thread Shapira, Yoav
Howdy, > When this is done, will cactus work, or will I need to write my own >jsp page, instantiate the classes needed myself, then run the unit test, >so that everything is set up for it? > > I have never thought of the difficulty of unit testing when using >servlet context

Re: unit testing when application level scoping used

2003-12-22 Thread James Black
page, instantiate the classes needed myself, then run the unit test, so that everything is set up for it? I have never thought of the difficulty of unit testing when using servlet contexts. Thank you for your response. ---

RE: unit testing when application level scoping used

2003-12-22 Thread Shapira, Yoav
t 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 app

re: unit testing when application level scoping used

2003-12-22 Thread James Black
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 p

Unit Testing

2003-08-14 Thread Hookom, Jacob
We are looking to do unit testing of our DAO components that currently leverage DataSource lookup via Java Naming. Are there UnitTests already out there that would give me that JNDI environment to test our code in? I know Cactus provides testing of Servlets, etc, but does that also provide me

Re: Unit Testing

2003-08-07 Thread Jon Wingfield
when running the tests. Enjoy, Jon Hookom, Jacob wrote: We are looking to do unit testing of our DAO components that currently leverage DataSource lookup via Java Naming. Are there UnitTests already out there that would give me that JNDI environment to test our code in? I know Cactus provides te

RE: How To Unit Testing Tomcat Datasource

2003-02-19 Thread Haytham Samad
Okay. I will check that out. Thanks. Haytham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:42 PM To: [EMAIL PROTECTED] Subject: RE: How To Unit Testing Tomcat Datasource No idea about JBoss. Tomcat's JNDI is not a

RE: How To Unit Testing Tomcat Datasource

2003-02-19 Thread pqin
rything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:30 PM To: Tomcat Users List Subject: RE: How To Unit Testing Tomcat Datasource PQ, Thanks for the reply. I actually use that in

RE: How To Unit Testing Tomcat Datasource

2003-02-19 Thread Haytham Samad
ry 19, 2003 12:14 PM To: [EMAIL PROTECTED] Subject: RE: How To Unit Testing Tomcat Datasource Always use java:comp/env/yourdatasource Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad

RE: How To Unit Testing Tomcat Datasource

2003-02-19 Thread pqin
Always use java:comp/env/yourdatasource Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing" -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:13 PM To: Tomcat Users List

How To Unit Testing Tomcat Datasource

2003-02-19 Thread Haytham Samad
I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I

OT - java:comp/env issues in standalone unit testing

2003-01-02 Thread Mark
I'm trying to set up standalone Ant-JUnit testing for our model objects which can be tested independent of our controller/view components. Problem is we have a lot of environment properties in web.xml, such as DAO class names used in factories and other run-time stuffso we have many instan