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:
Loredana Crusoveanu 2023-03-08 11:43:21 +02:00 committed by GitHub
commit 75b6c41819
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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");