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%2FToJsonIdentityrefTest.java;h=ce1b4afababd1841f0718410b74158d43ef9d6ac;hb=1257b6b217ae7fb2fca640b5991eac2a0266a93f;hp=c9ac042ff1b60655a89d9eb31a326d2cd3e6039d;hpb=f75b60147b1e6b4f47e4837480c1ed8bac963edb;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonIdentityrefTest.java b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonIdentityrefTest.java index c9ac042ff1..ce1b4afaba 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonIdentityrefTest.java +++ b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/ToJsonIdentityrefTest.java @@ -1,9 +1,9 @@ package org.opendaylight.controller.sal.restconf.impl.test; -import static org.junit.Assert.*; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import java.io.IOException; -import java.util.Set; import java.util.regex.*; import javax.ws.rs.WebApplicationException; @@ -11,22 +11,12 @@ import javax.ws.rs.WebApplicationException; import org.junit.*; import org.opendaylight.yangtools.yang.data.api.*; import org.opendaylight.yangtools.yang.data.impl.NodeFactory; -import org.opendaylight.yangtools.yang.model.api.*; -public class ToJsonIdentityrefTest { - - private static Set modules; - private static DataSchemaNode dataSchemaNode; +public class ToJsonIdentityrefTest extends YangAndXmlAndDataSchemaLoader { @BeforeClass public static void initialization() { - modules = TestUtils.resolveModules("/yang-to-json-conversion/identityref"); - assertEquals(2, modules.size()); - Module module = TestUtils.resolveModule("identityref-module", modules); - assertNotNull(module); - dataSchemaNode = TestUtils.resolveDataSchemaNode(module, "cont"); - assertNotNull(dataSchemaNode); - + dataLoad("/yang-to-json-conversion/identityref", 2, "identityref-module", "cont"); } @Test