@Test
public void initJarScanningSchemaServiceTest() throws Exception {
assertNotNull(schemaService.getGlobalContext());
- assertNotNull(schemaService.getSchemaContext());
- assertEquals(schemaService.getGlobalContext(), schemaService.getSchemaContext());
+ assertNotNull(schemaService.getEffectiveModelContext());
+ assertEquals(schemaService.getGlobalContext(), schemaService.getEffectiveModelContext());
}
@Test
final ListenerRegistration<EffectiveModelContextListener> registerSchemaContextListener =
schemaService.registerSchemaContextListener(listener);
assertEquals(registerSchemaContextListener.getInstance(), listener);
- assertEquals(schemaService.getSchemaContext(), actualSchemaCtx.getSchemaContext());
+ assertEquals(schemaService.getEffectiveModelContext(), actualSchemaCtx.getSchemaContext());
}
@Test
@Test
public void tryToUpdateSchemaCtxTest() {
- final SchemaContext baseSchemaContext = schemaService.getSchemaContext();
+ final SchemaContext baseSchemaContext = schemaService.getEffectiveModelContext();
assertNotNull(baseSchemaContext);
assertTrue(baseSchemaContext.getModules().size() == 1);
addYang("/empty-test1.yang");
addYangs(schemaService);
- final SchemaContext nextSchemaContext = schemaService.getSchemaContext();
+ final SchemaContext nextSchemaContext = schemaService.getEffectiveModelContext();
assertNotNull(baseSchemaContext);
assertTrue(baseSchemaContext.getModules().size() == 1);
import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
import org.opendaylight.yangtools.yang.model.api.EffectiveModelContextListener;
import org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider;
import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
import org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceProvider;
/**
* {@link DOMSchemaService} (and {@link DOMYangTextSourceProvider}) implementations backed by a
- * {@link SchemaContextProvider} (and {@link SchemaSourceProvider}) which are known to be fixed and never change
+ * {@link EffectiveModelContextProvider} (and {@link SchemaSourceProvider}) which are known to be fixed and never change
* schemas.
*
* @author Michael Vorburger.ch