import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
-
import com.google.common.util.concurrent.CheckedFuture;
import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
public class RestDeleteOperationTest extends JerseyTest {
private static RestconfImpl restconfImpl;
@BeforeClass
- public static void init() throws FileNotFoundException {
- final Set<Module> allModules = TestUtils.loadModulesFrom("/test-config-data/yang1");
+ public static void init() throws FileNotFoundException, ReactorException {
+ final SchemaContext schemaContext = TestUtils.loadSchemaContext("/test-config-data/yang1");
+ final Set<Module> allModules = schemaContext.getModules();
assertNotNull(allModules);
- final SchemaContext schemaContext = TestUtils.loadSchemaContext(allModules);
+
controllerContext = ControllerContext.getInstance();
controllerContext.setSchemas(schemaContext);
brokerFacade = mock(BrokerFacade.class);