X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Fnetconf-client-mdsal%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fclient%2Fmdsal%2FNetconfDeviceTest.java;fp=plugins%2Fnetconf-client-mdsal%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fclient%2Fmdsal%2FNetconfDeviceTest.java;h=002435ee71b40a519367bbc237c817b4e941c603;hb=36aaf41ff70e47fa6606cb424fa6588c7fcfc20e;hp=8044aee8b094fca46e5e6df7add38a843e74a5ac;hpb=14656d8a13dc04af3b7b0ba7d042b6e012a252f5;p=netconf.git diff --git a/plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceTest.java b/plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceTest.java index 8044aee8b0..002435ee71 100644 --- a/plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceTest.java +++ b/plugins/netconf-client-mdsal/src/test/java/org/opendaylight/netconf/client/mdsal/NetconfDeviceTest.java @@ -44,7 +44,6 @@ import org.opendaylight.netconf.api.xml.XmlUtil; import org.opendaylight.netconf.client.mdsal.NetconfDevice.EmptySchemaContextException; import org.opendaylight.netconf.client.mdsal.api.DeviceNetconfSchema; import org.opendaylight.netconf.client.mdsal.api.DeviceNetconfSchemaProvider; -import org.opendaylight.netconf.client.mdsal.api.NetconfDeviceSchemasResolver; import org.opendaylight.netconf.client.mdsal.api.NetconfSessionPreferences; import org.opendaylight.netconf.client.mdsal.api.RemoteDeviceHandler; import org.opendaylight.netconf.client.mdsal.api.RemoteDeviceId; @@ -75,9 +74,6 @@ public class NetconfDeviceTest extends AbstractTestModelTest { public static final String TEST_CAPABILITY2 = TEST_NAMESPACE + "?module=" + TEST_MODULE + "2" + "&revision=" + TEST_REVISION; - private static final NetconfDeviceSchemasResolver STATE_SCHEMAS_RESOLVER = - (deviceRpc, remoteSessionCapabilities, id, schemaContext) -> Futures.immediateFuture(NetconfStateSchemas.EMPTY); - private static NetconfMessage NOTIFICATION; @Mock @@ -106,8 +102,7 @@ public class NetconfDeviceTest extends AbstractTestModelTest { final var device = new NetconfDeviceBuilder() .setReconnectOnSchemasChange(true) - .setDeviceSchemaProvider(mockDeviceNetconfSchemaProvider(getSchemaRepository(), schemaFactory, - STATE_SCHEMAS_RESOLVER)) + .setDeviceSchemaProvider(mockDeviceNetconfSchemaProvider(getSchemaRepository(), schemaFactory)) .setProcessingExecutor(MoreExecutors.directExecutor()) .setId(getId()) .setSalFacade(facade) @@ -234,7 +229,7 @@ public class NetconfDeviceTest extends AbstractTestModelTest { final var device = new NetconfDeviceBuilder() .setReconnectOnSchemasChange(true) .setDeviceSchemaProvider(mockDeviceNetconfSchemaProvider(getSchemaRepository(), - schemaContextProviderFactory, STATE_SCHEMAS_RESOLVER)) + schemaContextProviderFactory)) .setProcessingExecutor(MoreExecutors.directExecutor()) .setId(getId()) .setSalFacade(facade) @@ -382,13 +377,13 @@ public class NetconfDeviceTest extends AbstractTestModelTest { } private DeviceNetconfSchemaProvider mockDeviceNetconfSchemaProvider() { - return mockDeviceNetconfSchemaProvider(getSchemaRepository(), getSchemaFactory(), STATE_SCHEMAS_RESOLVER); + return mockDeviceNetconfSchemaProvider(getSchemaRepository(), getSchemaFactory()); } private DeviceNetconfSchemaProvider mockDeviceNetconfSchemaProvider(final SchemaRepository schemaRepository, - final EffectiveModelContextFactory schemaFactory, final NetconfDeviceSchemasResolver stateSchemasResolver) { + final EffectiveModelContextFactory schemaFactory) { return new DefaultDeviceNetconfSchemaProvider(schemaRegistry, schemaRepository, schemaFactory, - stateSchemasResolver); + (unused1, unused2, unused3, unused4) -> Futures.immediateFuture(NetconfStateSchemas.EMPTY)); } public RemoteDeviceId getId() {