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%2FRestconfImplTest.java;h=c36de6e4eabc9abc11c10d20cb3eab353e73d096;hb=c57785bd755dfdeaf829ce80a4b8b383d8c04602;hp=8263c467b04aeac223edf8f676036de8faa50c13;hpb=25563418e1867be44ab8d829db30360df60ee1c9;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestconfImplTest.java b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestconfImplTest.java index 8263c467b0..c36de6e4ea 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestconfImplTest.java +++ b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/RestconfImplTest.java @@ -19,14 +19,13 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext; public class RestconfImplTest { - private static final RestconfImpl restconfImpl = new RestconfImpl(); + private static final RestconfImpl restconfImpl = RestconfImpl.getInstance(); @BeforeClass public static void init() throws FileNotFoundException { Set allModules = TestUtils.loadModules(RestconfImplTest.class.getResource("/full-versions/yangs").getPath()); - assertEquals(4, allModules.size()); SchemaContext schemaContext = TestUtils.loadSchemaContext(allModules); - ControllerContext controllerContext = new ControllerContext(); + ControllerContext controllerContext = ControllerContext.getInstance(); controllerContext.setSchemas(schemaContext); restconfImpl.setControllerContext(controllerContext); }