My suggestion would be to have a different hibernate configuraiton for
your tests.  I have a base test class that creates a mock setup of
instances in a fresh test database and then run the tests against that
before cleaning up.

There are dummy JNDI implementations around though if you'd prefer that.

hth
dim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
hanasaki
Sent: Wednesday, 10 December 2003 4:59 PM
To: Hibernate-Devel - LIST
Subject: [Hibernate] JUnit testing of hibernate code segments that need
a datasource


Hibernate has been setup to use the data source provided by Tomcat. 
There are some JUnit tests that need to be run on code segments/classes 
that are not running inside the container.  How can a Datasource and 
java:comp/env/jdbc be create and setup for the application outside of 
the container?


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for
IBM's Free Linux Tutorials.  Learn everything from the bash shell to sys
admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
hibernate-devel mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to