use of org.candlepin.common.config.PropertiesFileConfiguration in project candlepin by candlepin.
the class CustomizableModulesTest method shouldLoadAndParseConfigurationFile.
@Test
public void shouldLoadAndParseConfigurationFile() throws Exception {
Configuration config = new PropertiesFileConfiguration(getAbsolutePath("customizable_modules_test.conf"));
Set<Module> loaded = new CustomizableModules().load(config);
assertEquals(1, loaded.size());
assertTrue(loaded.iterator().next() instanceof DummyModuleForTesting);
}
use of org.candlepin.common.config.PropertiesFileConfiguration in project candlepin by candlepin.
the class CustomizableModulesTest method shouldFailWhenConfigurationContainsMissingClass.
// TODO: We should probably be more specific...
@Test(expected = RuntimeException.class)
public void shouldFailWhenConfigurationContainsMissingClass() throws Exception {
Configuration config = new PropertiesFileConfiguration(getAbsolutePath("customizable_modules_with_missing_class.conf"));
new CustomizableModules().load(config);
}
Aggregations