X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2Fcnsn%2Fto%2Fjson%2Ftest%2FCnSnToJsonWithDataFromSeveralModulesTest.java;h=a84fc79b86fbc9bb1d028859b629aeb1ecbfe622;hp=348edbd2945d6d1fb2f86ea0d1e3026a81132c47;hb=c222e37f2a0f0f3f6266242fbea2d3b018f4e6e3;hpb=c61d22e4dc73fdaba09aa8c0b189ea7459679e03 diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/cnsn/to/json/test/CnSnToJsonWithDataFromSeveralModulesTest.java b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/cnsn/to/json/test/CnSnToJsonWithDataFromSeveralModulesTest.java index 348edbd294..a84fc79b86 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/cnsn/to/json/test/CnSnToJsonWithDataFromSeveralModulesTest.java +++ b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/cnsn/to/json/test/CnSnToJsonWithDataFromSeveralModulesTest.java @@ -13,9 +13,7 @@ import java.io.IOException; import java.net.URISyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; - import javax.ws.rs.WebApplicationException; - import org.junit.BeforeClass; import org.junit.Test; import org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider; @@ -99,32 +97,32 @@ public class CnSnToJsonWithDataFromSeveralModulesTest extends YangAndXmlAndDataS MutableCompositeNode cont_m1 = NodeFactory.createMutableCompositeNode( TestUtils.buildQName("cont_m1", uri1, rev1), data, null, null, null); - data.getChildren().add(cont_m1); + data.getValue().add(cont_m1); MutableSimpleNode lf1_m1 = NodeFactory.createMutableSimpleNode(TestUtils.buildQName("lf1_m1", uri1, rev1), cont_m1, "lf1 m1 value", null, null); - cont_m1.getChildren().add(lf1_m1); + cont_m1.getValue().add(lf1_m1); cont_m1.init(); MutableCompositeNode contB_m1 = NodeFactory.createMutableCompositeNode( TestUtils.buildQName("contB_m1", uri1, rev1), data, null, null, null); - data.getChildren().add(contB_m1); + data.getValue().add(contB_m1); contB_m1.init(); String uri2 = "module:two"; String rev2 = "2014-01-17"; MutableCompositeNode cont_m2 = NodeFactory.createMutableCompositeNode( TestUtils.buildQName("cont_m2", uri2, rev2), data, null, null, null); - data.getChildren().add(cont_m2); + data.getValue().add(cont_m2); MutableSimpleNode lf1_m2 = NodeFactory.createMutableSimpleNode(TestUtils.buildQName("lf1_m2", uri2, rev2), cont_m1, "lf1 m2 value", null, null); - cont_m2.getChildren().add(lf1_m2); + cont_m2.getValue().add(lf1_m2); cont_m2.init(); MutableCompositeNode contB_m2 = NodeFactory.createMutableCompositeNode( TestUtils.buildQName("contB_m2", uri2, rev2), data, null, null, null); - data.getChildren().add(contB_m2); + data.getValue().add(contB_m2); contB_m2.init(); data.init();