Remove unused properties from PCE test classes 77/114877/5
authorGilles Thouenon <gilles.thouenon@orange.com>
Thu, 9 Jan 2025 13:23:01 +0000 (14:23 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Fri, 17 Jan 2025 10:50:02 +0000 (11:50 +0100)
Some PCE test classes declare the BindingDOMCodecServices as a property
but the latter is not used. Just delete it.

JIRA: TRNSPRTPCE-840
Change-Id: I495302488f1dd5c562db92a105ae35fa166d215e
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
pce/src/test/java/org/opendaylight/transportpce/pce/PceSendingPceRPCsTest.java
pce/src/test/java/org/opendaylight/transportpce/pce/constraints/OperatorConstraintsTest.java

index ffe145f8f8a263fae321f36628a087ebd32ebb26..c68b916666c2f4539eed9ee6529d25e01c691cd3 100644 (file)
@@ -42,7 +42,6 @@ import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmappi
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev240315.network.nodes.NodeInfo;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev240315.network.nodes.NodeInfoBuilder;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.device.types.rev191129.NodeTypes;
-import org.opendaylight.yangtools.binding.data.codec.spi.BindingDOMCodecServices;
 
 @ExtendWith(MockitoExtension.class)
 class PceSendingPceRPCsTest extends AbstractTest {
@@ -50,8 +49,6 @@ class PceSendingPceRPCsTest extends AbstractTest {
     private PceSendingPceRPCs pceSendingPceRPCs;
     private NetworkTransactionImpl networkTransaction;
     private Mapping mapping;
-    @Mock
-    private BindingDOMCodecServices bindingDOMCodecServices;
     private DataBroker dataBroker;
     private GnpyConsumer gnpyConsumer;
     @Mock
index 9e26f1e5ae18b96f0efb3d9f386efd981d7a81be..68aac9e50e327c534d12f293d1681447e872b7c1 100644 (file)
@@ -20,7 +20,6 @@ import org.eclipse.jdt.annotation.NonNull;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.extension.ExtendWith;
-import org.mockito.Mock;
 import org.mockito.junit.jupiter.MockitoExtension;
 import org.opendaylight.mdsal.binding.api.DataBroker;
 import org.opendaylight.mdsal.binding.api.WriteTransaction;
@@ -38,7 +37,6 @@ import org.opendaylight.transportpce.test.converter.JSONDataObjectConverter;
 //.spectrum.filling.SpectrumFillingRules;
 import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev230526.ControllerBehaviourSettings;
 import org.opendaylight.yangtools.binding.DataObjectIdentifier;
-import org.opendaylight.yangtools.binding.data.codec.spi.BindingDOMCodecServices;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
 import org.slf4j.Logger;
@@ -54,8 +52,6 @@ public class OperatorConstraintsTest extends AbstractTest {
 //    private static SpectrumFillingRules sfRule;
     private static ControllerBehaviourSettings cbSettings;
     private OperatorConstraints opConstraints;
-    @Mock
-    private BindingDOMCodecServices bindingDOMCodecServices;
     private DataBroker dataBroker;
 
     @BeforeEach