remove System properties from unit tests
This commit is contained in:
parent
7d7662a352
commit
a14f5ad897
|
@ -21,7 +21,6 @@ public class SimpleJNDIUnitTest {
|
||||||
@Test
|
@Test
|
||||||
public void whenMockJndiDataSource_thenReturnJndiDataSource() throws Exception {
|
public void whenMockJndiDataSource_thenReturnJndiDataSource() throws Exception {
|
||||||
String dsString = "org.h2.Driver::::jdbc:jdbc:h2:mem:testdb::::sa";
|
String dsString = "org.h2.Driver::::jdbc:jdbc:h2:mem:testdb::::sa";
|
||||||
|
|
||||||
Context envContext = (Context) this.initContext.lookup("java:/comp/env");
|
Context envContext = (Context) this.initContext.lookup("java:/comp/env");
|
||||||
DataSource ds = (DataSource) envContext.lookup("datasource/ds");
|
DataSource ds = (DataSource) envContext.lookup("datasource/ds");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue