Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / Bug8072Test.java
index 8edda9dab9f26c07b2af8d9376e8bb0325ae31d6..ad2ce0dc7b65d2ff10a8295d3a7d0cc695fdbf40 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.controller.sal.restconf.impl.test;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
 import static org.mockito.Matchers.any;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
@@ -46,7 +45,7 @@ public class Bug8072Test {
     @BeforeClass
     public static void init() throws FileNotFoundException, ReactorException {
         final SchemaContext globalContext = TestUtils.loadSchemaContext("/full-versions/yangs");
-        assertNull(globalContext.findModuleByName(EXTERNAL_MODULE_NAME, null));
+        assertEquals(0, globalContext.findModules(EXTERNAL_MODULE_NAME).size());
         final Set<Module> allModules = globalContext.getModules();
         assertNotNull(allModules);
         CONTROLLER_CONTEXT.setSchemas(globalContext);