Merge pull request #13597 from ulisseslima/bael-3830-quickfix_mock-jndi
BAEL-3830 - Test a Mock JNDI Datasource with Spring - quick fix
This commit is contained in:
commit
75b6c41819
|
@ -1,5 +1,5 @@
|
|||
ds.type=javax.sql.DataSource
|
||||
ds.driver=org.h2.Driver
|
||||
ds.url=jdbc:jdbc:h2:mem:testdb
|
||||
ds.url=jdbc:h2:mem:testdb
|
||||
ds.user=sa
|
||||
ds.password=password
|
||||
|
|
|
@ -21,7 +21,7 @@ public class SimpleJNDIUnitTest {
|
|||
|
||||
@Test
|
||||
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");
|
||||
DataSource ds = (DataSource) envContext.lookup("datasource/ds");
|
||||
|
||||
|
|
Loading…
Reference in New Issue