removing extra 'jdbc:'
This commit is contained in:
parent
bd178710dc
commit
f70c91c43f
@ -1,5 +1,5 @@
|
|||||||
ds.type=javax.sql.DataSource
|
ds.type=javax.sql.DataSource
|
||||||
ds.driver=org.h2.Driver
|
ds.driver=org.h2.Driver
|
||||||
ds.url=jdbc:jdbc:h2:mem:testdb
|
ds.url=jdbc:h2:mem:testdb
|
||||||
ds.user=sa
|
ds.user=sa
|
||||||
ds.password=password
|
ds.password=password
|
||||||
|
@ -21,7 +21,7 @@ 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: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…
x
Reference in New Issue
Block a user