참고 : http://faq.javaranch.com/java/CodeBarnLibrariesAndFrameworks
Can be used to simulate JNDI lookups for database connections or for testing data access objects from the command line.
테스팅 데이타를 위한 접근으로 JNDI lookups for database connections 을 흉내내는 패키지라고 하네요.
1. JNDI 를 흉내내기 위한 프로퍼티지 파일을 등록합니다.
2. JNDIUnitTestHelper 를 이용하여 InitialContext 를 바인드 합니다.
Can be used to simulate JNDI lookups for database connections or for testing data access objects from the command line.
테스팅 데이타를 위한 접근으로 JNDI lookups for database connections 을 흉내내는 패키지라고 하네요.
1. JNDI 를 흉내내기 위한 프로퍼티지 파일을 등록합니다.
2. JNDIUnitTestHelper 를 이용하여 InitialContext 를 바인드 합니다.
jndi_unit_test_helper.properties
com.javaranch.unittest.helper.sql.pool.JNDIName=jdbc/myoracle
com.javaranch.unittest.helper.sql.pool.dbDriver=oracle.jdbc.driver.OracleDriver
com.javaranch.unittest.helper.sql.pool.dbServer=jdbc:oracle:thin:@localhost:1521:ORCL
com.javaranch.unittest.helper.sql.pool.dbLogin=zeehastory
com.javaranch.unittest.helper.sql.pool.dbPassword=zeehastory
DBTest.java
[JUnit_JNDI_Helper]jrunittesthelper.zip