@Test void putAllTest() { Map<String, String> propMap = Map.of( "mp.messaging.outcoming.test-channel." + TEST_KEY, TEST_TOPIC_CONFIG ); Map<String, String> propMap2 = Map.of( "mp.messaging.connector." + TEST_CONNECTOR + "." + ADDITION_ATTR_1, ADDITION_ATTR_1_VALUE, "mp.messaging.connector." + TEST_CONNECTOR + "." + ADDITION_ATTR_2, ADDITION_ATTR_2_VALUE ); Config config = Config.builder(ConfigSources.create(propMap)) .disableEnvironmentVariablesSource() .disableSystemPropertiesSource() .build(); Config config2 = Config.builder(ConfigSources.create(propMap2)) .disableEnvironmentVariablesSource() .disableSystemPropertiesSource() .build(); org.eclipse.microprofile.config.Config c = AdHocConfigBuilder .from(config.get("mp.messaging.outcoming.test-channel")) .putAll(config2.get("mp.messaging.connector." + TEST_CONNECTOR)) .build(); assertThat(c.getValue(ADDITION_ATTR_1, String.class), is(ADDITION_ATTR_1_VALUE)); assertThat(c.getValue(ADDITION_ATTR_2, String.class), is(ADDITION_ATTR_2_VALUE)); }
AdHocConfigBuilder putAll(Config configToPut) { configuration.putAll(configToPut.detach().asMap().orElse(Map.of())); return this; }
AdHocConfigBuilder { AdHocConfigBuilder putAll(Config configToPut) { configuration.putAll(configToPut.detach().asMap().orElse(Map.of())); return this; } }
AdHocConfigBuilder { AdHocConfigBuilder putAll(Config configToPut) { configuration.putAll(configToPut.detach().asMap().orElse(Map.of())); return this; } private  AdHocConfigBuilder(); }
AdHocConfigBuilder { AdHocConfigBuilder putAll(Config configToPut) { configuration.putAll(configToPut.detach().asMap().orElse(Map.of())); return this; } private  AdHocConfigBuilder();  }
AdHocConfigBuilder { AdHocConfigBuilder putAll(Config configToPut) { configuration.putAll(configToPut.detach().asMap().orElse(Map.of())); return this; } private  AdHocConfigBuilder();   }