Use ControllerContext non-statically
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / nn / to / xml / test / NnToXmlWithDataFromSeveralModulesTest.java
index 08539d0a5b63f3761791f26a950277eb3acee87e..1f4b0456d8c2a3785264a6045c6e3973dbed78cd 100644 (file)
@@ -42,16 +42,14 @@ public class NnToXmlWithDataFromSeveralModulesTest extends
     private final NormalizedNodeXmlBodyWriter xmlBodyWriter;
     private static SchemaContext schemaContext;
 
-    public NnToXmlWithDataFromSeveralModulesTest() throws NoSuchFieldException,
-            SecurityException {
+    public NnToXmlWithDataFromSeveralModulesTest() {
+        super(schemaContext, null);
         xmlBodyWriter = new NormalizedNodeXmlBodyWriter();
     }
 
     @BeforeClass
     public static void initialize() {
-        schemaContext = schemaContextLoader(
-                "/nn-to-xml/data-of-several-modules/yang", schemaContext);
-        CONTROLLER_CONTEXT.setSchemas(schemaContext);
+        schemaContext = schemaContextLoader("/nn-to-xml/data-of-several-modules/yang", schemaContext);
     }
 
     @Test