dataBroker = this.getNewDataBroker();
this.mountPoint = new MountPointStub(dataBroker);
this.mountPointService = new MountPointServiceStub(mountPoint);
- // this.mappingUtils = new MappingUtilsImpl(getDataBroker());
this.mappingUtils = Mockito.spy(new MappingUtilsImpl(dataBroker));
Mockito.doReturn(StringConstants.OPENROADM_DEVICE_VERSION_1_2_1).when(mappingUtils)
.getOpenRoadmVersion(Mockito.anyString());
this.openRoadmInterfacesImpl121 = new OpenRoadmInterfacesImpl121(deviceTransactionManager);
this.openRoadmInterfacesImpl22 = new OpenRoadmInterfacesImpl221(deviceTransactionManager, this.portMapping,
this.portMappingVersion22);
- this.openRoadmInterfacesImpl710 = new OpenRoadmInterfacesImpl710(deviceTransactionManager);
+ this.openRoadmInterfacesImpl710 = new OpenRoadmInterfacesImpl710(deviceTransactionManager, this.portMapping,
+ this.portMappingVersion710);
this.openRoadmInterfaces = new OpenRoadmInterfacesImpl((this.deviceTransactionManager),
this.mappingUtils,this.openRoadmInterfacesImpl121,this.openRoadmInterfacesImpl22,
this.openRoadmInterfacesImpl710);
Assert.assertEquals(true, output);
}
/*
+ TODO: see if this test is always relevant
@Test
public void testSetPowerPresentNodes31() throws InterruptedException {
List<NodeId> nodes = TransactionUtils.getNodeIds();
}
/*
+ TODO: see if this test is always relevant
@Test
public void testSetPowerPresentNodes41() throws InterruptedException {
List<NodeId> nodes = TransactionUtils.getNodeIds();