JUnit JNDI DataSource helper package

July 6, 2008

“jrunittesthelper” is a library offered by JavaRanch Codebarn which can be used to simulate a JNDI lookup for database connections. It comes really handy for Junit test cases written to test production code which would typically require a JNDI lookup in order to instantiate the JDBC datasource.

Installation and Configuration

Download the zip file from JavaRanch Codebarn

Include the jrunittesthelper.jar in the classpath (ant or maven) of your test packages

Create a jndi_unit_test_helper.properties

Read the rest of this entry »