Fixed leak of LazyGeneratedCodecRegistry between restarts of service.
[yangtools.git] / restconf / restconf-util / src / test / java / org / opendaylight / yangtools / restconf / utils / LazyGeneratedCodecRestartTest.java
diff --git a/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/LazyGeneratedCodecRestartTest.java b/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/LazyGeneratedCodecRestartTest.java
new file mode 100644 (file)
index 0000000..80c5d6e
--- /dev/null
@@ -0,0 +1,30 @@
+package org.opendaylight.yangtools.restconf.utils;
+
+import org.junit.Before;
+import org.junit.Test;
+
+public class LazyGeneratedCodecRestartTest {
+
+    Bug527Test bug527;
+    Bug1196Test bug1196;
+    RestconfUtilsTest reUtils;
+
+
+    @Before
+    public void setup() {
+        bug527 = new Bug527Test();
+        bug1196 = new Bug1196Test();
+        reUtils = new RestconfUtilsTest();
+
+    }
+
+    @Test
+    public void test() {
+       bug1196.setup();
+       bug1196.testXmlDataToDataObjectUnixCase();
+
+       reUtils.setup();
+       reUtils.testToDataObjectMappingWithNestedAugmentations();
+    }
+
+}