Added serializer/deserializer for JSON/XML
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / ControllerContextTest.java
index 8460140101d87d6ca9db06fa934dfa970b657f88..39c0d3b34f67159e7de8a1c1fc4a73809ae648b8 100644 (file)
@@ -15,7 +15,7 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 
 public class ControllerContextTest {
 
-    private static final ControllerContext controllerContext = new ControllerContext();
+    private static final ControllerContext controllerContext = ControllerContext.getInstance();
 
     @BeforeClass
     public static void init() throws FileNotFoundException {
@@ -56,7 +56,7 @@ public class ControllerContextTest {
         assertTrue(instanceIdentifier.getSchemaNode() instanceof ContainerSchemaNode);
         assertEquals(2, ((ContainerSchemaNode)instanceIdentifier.getSchemaNode()).getChildNodes().size());
     }
-    
+
     @Test
     public void testToInstanceIdentifierChoice() throws FileNotFoundException {
         InstanceIdWithSchemaNode instanceIdentifier = controllerContext.toInstanceIdentifier("simple-nodes:food/beer");