@Test(expected = IllegalStateException.class) public void build_notConfigured() throws Exception { underTest.build(); }
public Map<String, String> build() throws Exception { if (properties.isEmpty()) { throw new IllegalStateException("Not configured"); } interpolate(); canonicalize("karaf.base"); canonicalize("karaf.etc"); canonicalize("karaf.data"); PropertyMap props = new PropertyMap(properties); log.info("Properties:"); for (String key : props.keys()) { log.info(" {}='{}'", key, props.get(key)); } return props; }
ConfigurationBuilder { public Map<String, String> build() throws Exception { if (properties.isEmpty()) { throw new IllegalStateException("Not configured"); } interpolate(); canonicalize("karaf.base"); canonicalize("karaf.etc"); canonicalize("karaf.data"); PropertyMap props = new PropertyMap(properties); log.info("Properties:"); for (String key : props.keys()) { log.info(" {}='{}'", key, props.get(key)); } return props; } }
ConfigurationBuilder { public Map<String, String> build() throws Exception { if (properties.isEmpty()) { throw new IllegalStateException("Not configured"); } interpolate(); canonicalize("karaf.base"); canonicalize("karaf.etc"); canonicalize("karaf.data"); PropertyMap props = new PropertyMap(properties); log.info("Properties:"); for (String key : props.keys()) { log.info(" {}='{}'", key, props.get(key)); } return props; }  }
ConfigurationBuilder { public Map<String, String> build() throws Exception { if (properties.isEmpty()) { throw new IllegalStateException("Not configured"); } interpolate(); canonicalize("karaf.base"); canonicalize("karaf.etc"); canonicalize("karaf.data"); PropertyMap props = new PropertyMap(properties); log.info("Properties:"); for (String key : props.keys()) { log.info(" {}='{}'", key, props.get(key)); } return props; }  ConfigurationBuilder properties(final Map<String, String> props); ConfigurationBuilder properties(final URL url); ConfigurationBuilder properties(final String resource, final boolean required); ConfigurationBuilder properties(final Class<?> clazz, final String resource, final boolean required); ConfigurationBuilder properties(final File resource, final boolean required); ConfigurationBuilder properties(final File resource, final String onlyConcern, final boolean required); ConfigurationBuilder defaults(); ConfigurationBuilder set(final String name, final String value); ConfigurationBuilder custom(final Customizer customizer); ConfigurationBuilder override(final Map<String,String> overrides); ConfigurationBuilder override(final Properties overrides); Map<String, String> build(); }
ConfigurationBuilder { public Map<String, String> build() throws Exception { if (properties.isEmpty()) { throw new IllegalStateException("Not configured"); } interpolate(); canonicalize("karaf.base"); canonicalize("karaf.etc"); canonicalize("karaf.data"); PropertyMap props = new PropertyMap(properties); log.info("Properties:"); for (String key : props.keys()) { log.info(" {}='{}'", key, props.get(key)); } return props; }  ConfigurationBuilder properties(final Map<String, String> props); ConfigurationBuilder properties(final URL url); ConfigurationBuilder properties(final String resource, final boolean required); ConfigurationBuilder properties(final Class<?> clazz, final String resource, final boolean required); ConfigurationBuilder properties(final File resource, final boolean required); ConfigurationBuilder properties(final File resource, final String onlyConcern, final boolean required); ConfigurationBuilder defaults(); ConfigurationBuilder set(final String name, final String value); ConfigurationBuilder custom(final Customizer customizer); ConfigurationBuilder override(final Map<String,String> overrides); ConfigurationBuilder override(final Properties overrides); Map<String, String> build();  }