removing extra 'jdbc:'

This commit is contained in:
Ulisses Lima 2023-03-07 12:20:41 -03:00
parent bd178710dc
commit f70c91c43f
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");