@@ -517,15 +517,12 @@ public void pgsql() throws Exception {
517517 .resolve ();
518518
519519 new MockUnit (Env .class , Config .class , Binder .class )
520- .expect (props ("" , "jdbc:pgsql://server/database" ,
521- "pgsql.database" , null , "" , false ))
520+ .expect (
521+ props ("com.impossibl.postgres.jdbc.PGDataSourceWithUrl" , "jdbc:pgsql://server/database" ,
522+ "pgsql.database" , null , "" , false ))
522523 .expect (hikariConfig ())
523524 .expect (hikariDataSource ())
524525 .expect (serviceKey ("database" ))
525- .expect (unit -> {
526- Properties props = unit .get (Properties .class );
527- expect (props .put ("jdbcUrl" , url )).andReturn (null );
528- })
529526 .expect (onStop )
530527 .run (unit -> {
531528 new Jdbc ().configure (unit .get (Env .class ), dbconf , unit .get (Binder .class ));
@@ -544,15 +541,11 @@ public void postgresql() throws Exception {
544541 .resolve ();
545542
546543 new MockUnit (Env .class , Config .class , Binder .class )
547- .expect (props ("" , "jdbc:postgresql://server/database" ,
544+ .expect (props ("org.postgresql.ds.PGSimpleDataSource " , "jdbc:postgresql://server/database" ,
548545 "postgresql.database" , null , "" , false ))
549546 .expect (hikariConfig ())
550547 .expect (hikariDataSource ())
551548 .expect (serviceKey ("database" ))
552- .expect (unit -> {
553- Properties props = unit .get (Properties .class );
554- expect (props .put ("jdbcUrl" , url )).andReturn (null );
555- })
556549 .expect (onStop )
557550 .run (unit -> {
558551 new Jdbc ().configure (unit .get (Env .class ), dbconf , unit .get (Binder .class ));
0 commit comments