@Test(expected=ConversionException.class) public void testGetConfigurationClassBadParseNumber() throws ConfigurationException { Configuration config = ServiceConfig.getConfiguration(getClass()); config.getInteger("testBadParseNumber"); fail("expected ConfigurationException to have been thrown"); }
public static Configuration getConfiguration(Class<?> clazz) throws ConfigurationException { String className = clazz.getName(); _log.info("Class name is " + className); return getConfiguration(className); }
ServiceConfig { public static Configuration getConfiguration(Class<?> clazz) throws ConfigurationException { String className = clazz.getName(); _log.info("Class name is " + className); return getConfiguration(className); } }
ServiceConfig { public static Configuration getConfiguration(Class<?> clazz) throws ConfigurationException { String className = clazz.getName(); _log.info("Class name is " + className); return getConfiguration(className); } private  ServiceConfig(); }
ServiceConfig { public static Configuration getConfiguration(Class<?> clazz) throws ConfigurationException { String className = clazz.getName(); _log.info("Class name is " + className); return getConfiguration(className); } private  ServiceConfig(); static Configuration getConfiguration(Class<?> clazz); static Configuration getConfiguration(String basename); static Configuration getConfiguration(File properties); }
ServiceConfig { public static Configuration getConfiguration(Class<?> clazz) throws ConfigurationException { String className = clazz.getName(); _log.info("Class name is " + className); return getConfiguration(className); } private  ServiceConfig(); static Configuration getConfiguration(Class<?> clazz); static Configuration getConfiguration(String basename); static Configuration getConfiguration(File properties);  }