X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Ftest%2Futil%2FMockSchemaService.java;h=cd89c4ed6cffbd15d67188cda63ef1f634bbcb29;hp=8fc60e4bbbeb3271f7c559040485abed88f23e00;hb=c7515b27b065ef5f4d14ae931413ea83a4c047a8;hpb=178d7d60449f221af2615c361bd4fefbe338c613 diff --git a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/MockSchemaService.java b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/MockSchemaService.java index 8fc60e4bbb..cd89c4ed6c 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/MockSchemaService.java +++ b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/sal/binding/test/util/MockSchemaService.java @@ -7,25 +7,19 @@ */ package org.opendaylight.controller.sal.binding.test.util; -import org.opendaylight.controller.sal.core.api.model.SchemaService; +import org.opendaylight.mdsal.dom.api.DOMSchemaService; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.util.ListenerRegistry; -import org.opendaylight.yangtools.yang.model.api.Module; import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.opendaylight.yangtools.yang.model.api.SchemaContextListener; import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider; -public final class MockSchemaService implements SchemaService, SchemaContextProvider { +public final class MockSchemaService implements DOMSchemaService, SchemaContextProvider { private SchemaContext schemaContext; ListenerRegistry listeners = ListenerRegistry.create(); - @Override - public void addModule(final Module module) { - throw new UnsupportedOperationException(); - } - @Override public synchronized SchemaContext getGlobalContext() { return schemaContext; @@ -42,11 +36,6 @@ public final class MockSchemaService implements SchemaService, SchemaContextProv return listeners.register(listener); } - @Override - public void removeModule(final Module module) { - throw new UnsupportedOperationException(); - } - @Override public synchronized SchemaContext getSchemaContext() { return schemaContext;