RobustIdentifiable implemented and tested + test impacts.
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / CompositeConfigTest.java
index 1875d4b96d6ab65238eb6b1629a77f22242acaae..1f17b68e7c85ce81717305a01844910bc7525d96 100644 (file)
@@ -22,7 +22,7 @@ import java.util.List;
 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 {
@@ -116,7 +116,7 @@ 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")) {
@@ -159,7 +159,7 @@ public class CompositeConfigTest {
         try {
             composite.addConfig(c2);
             fail();
-        } catch (DuplicateException e) {
+        } catch (ConfigException e) {
             // ok.
         }
         assertEquals(1, composite.values().size());