X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2Ftest%2FToJsonChoiceCaseTest.java;h=c5682cb5cc1381eb31c66716a06118aa2e557e48;hb=1257b6b217ae7fb2fca640b5991eac2a0266a93f;hp=8e3ff1d2ed4a998997181a897a1c8ff648099aaa;hpb=1720ef0759ca8d7ff96bc82563f7673d68a20377;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonChoiceCaseTest.java b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonChoiceCaseTest.java index 8e3ff1d2ed..c5682cb5cc 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonChoiceCaseTest.java +++ b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonChoiceCaseTest.java @@ -1,27 +1,18 @@ package org.opendaylight.controller.sal.restconf.impl.test; -import static org.junit.Assert.*; +import static org.junit.Assert.assertTrue; import java.io.IOException; -import java.util.Set; -import javax.activation.UnsupportedDataTypeException; import javax.ws.rs.WebApplicationException; import org.junit.*; -import org.opendaylight.yangtools.yang.model.api.*; -public class ToJsonChoiceCaseTest { - - private static Set modules; - private static DataSchemaNode dataSchemaNode; +public class ToJsonChoiceCaseTest extends YangAndXmlAndDataSchemaLoader { @BeforeClass public static void initialization() { - modules = TestUtils.resolveModules("/yang-to-json-conversion/choice"); - Module module = TestUtils.resolveModule(null, modules); - dataSchemaNode = TestUtils.resolveDataSchemaNode(module, null); - + dataLoad("/yang-to-json-conversion/choice"); } /** @@ -44,9 +35,9 @@ public class ToJsonChoiceCaseTest { /** * Test when some data are in one case node and other in another. - * Additionally data are loadef from various choices. This isn't - * correct. Next Json validator should return error because nodes has to be - * from one case below concrete choice. + * Additionally data are loadef from various choices. This isn't correct. + * Next Json validator should return error because nodes has to be from one + * case below concrete choice. * */ @Test