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<Module> 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);
}