@Test public void testGetConfigurationClassCheckPropsExist() throws ConfigurationException { Configuration config = ServiceConfig.getConfiguration(getClass()); assertNotNull("Expected to find properties in: " + baseDir + File.separatorChar + getClass().getName() + ".properties", config); }
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);  }