Bug 868: Made sure Restconf client POC does not use CompositeNodes.
[yangtools.git] / integration-test / yang-runtime-tests / src / test / java / org / opendaylight / yangtools / it / yang / runtime / tests / Bug466EmptyAugmentationCodecs.java
diff --git a/integration-test/yang-runtime-tests/src/test/java/org/opendaylight/yangtools/it/yang/runtime/tests/Bug466EmptyAugmentationCodecs.java b/integration-test/yang-runtime-tests/src/test/java/org/opendaylight/yangtools/it/yang/runtime/tests/Bug466EmptyAugmentationCodecs.java
deleted file mode 100644 (file)
index 3189025..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.opendaylight.yangtools.it.yang.runtime.tests;
-
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import javassist.ClassPool;
-
-import org.junit.Before;
-import org.junit.Test;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.yang.test.regression.bug466.augmentation.empty.rev140226.Bug4661;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.yang.test.regression.bug466.base.rev140226.Bug466;
-import org.opendaylight.yangtools.sal.binding.generator.impl.ModuleInfoBackedContext;
-import org.opendaylight.yangtools.sal.binding.generator.impl.RuntimeGeneratedMappingServiceImpl;
-import org.opendaylight.yangtools.yang.binding.YangModuleInfo;
-import org.opendaylight.yangtools.yang.binding.util.BindingReflections;
-import org.opendaylight.yangtools.yang.data.impl.codec.DataContainerCodec;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-
-import com.google.common.base.Optional;
-
-public class Bug466EmptyAugmentationCodecs {
-
-
-
-    private YangModuleInfo baseModuleInfo;
-    private YangModuleInfo augmentationModuleInfo;
-    private ModuleInfoBackedContext moduleInfoContext;
-    private RuntimeGeneratedMappingServiceImpl mappingService;
-    private Optional<SchemaContext> schemaContext;
-
-
-    @Before
-    public void setup()throws Exception {
-        baseModuleInfo = BindingReflections.getModuleInfo(Bug466.class);
-        augmentationModuleInfo = BindingReflections.getModuleInfo(Bug4661.class);
-
-        moduleInfoContext = ModuleInfoBackedContext.create();
-        moduleInfoContext.registerModuleInfo(baseModuleInfo);
-        moduleInfoContext.registerModuleInfo(augmentationModuleInfo);
-        schemaContext = moduleInfoContext.tryToCreateSchemaContext();
-        assertNotNull(schemaContext);
-        assertTrue(schemaContext.isPresent());
-
-        mappingService = new RuntimeGeneratedMappingServiceImpl(ClassPool.getDefault(), moduleInfoContext);
-        mappingService.onGlobalContextUpdated(schemaContext.get());
-
-    }
-
-
-    @Test
-    public void proactiveGenerationOfAugmentationCodecs() {
-        DataContainerCodec<Bug466> codec = mappingService.getCodecRegistry().getCodecForDataObject(Bug466.class);
-        assertNotNull(codec);
-    }
-
-}