@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("db.fetch-size", "500") .put("db.connections.max", "12") .put("db.connections.wait", "42s") .build(); PostgreSqlDataSourceConfig expected = new PostgreSqlDataSourceConfig() .setDefaultFetchSize(500) .setMaxConnections(12) .setMaxConnectionWait(new Duration(42, TimeUnit.SECONDS)); ConfigAssertions.assertFullMapping(properties, expected); } }
@Test public void testExplicitPropertyMappings() { Map<String, String> properties = new ImmutableMap.Builder<String, String>() .put("db.fetch-size", "500") .put("db.connections.max", "12") .put("db.connections.wait", "42s") .build(); PostgreSqlDataSourceConfig expected = new PostgreSqlDataSourceConfig() .setDefaultFetchSize(500) .setMaxConnections(12) .setMaxConnectionWait(new Duration(42, TimeUnit.SECONDS)); ConfigAssertions.assertFullMapping(properties, expected); } }