import org.junit.Test;
import org.wamblee.xmlrouter.common.Id;
import org.wamblee.xmlrouter.config.Config;
-import org.wamblee.xmlrouter.config.DuplicateException;
+import org.wamblee.xmlrouter.config.ConfigException;
import org.wamblee.xmlrouter.config.Identifiable;
public class CompositeConfigTest {
assertTrue(values.contains(i4));
}
- @Test(expected = DuplicateException.class)
+ @Test(expected = ConfigException.class)
public void testDuplicatesNotAllowed() {
CompositeConfig<IntClass> composite = composite("c");
Config<IntClass> c1 = new ConfigImpl(id("c1")) {
try {
composite.addConfig(c2);
fail();
- } catch (DuplicateException e) {
+ } catch (ConfigException e) {
// ok.
}
assertEquals(1, composite.values().size());