Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I1eeaa45ddce239db0e31a703ef0ed27f8798575e
* This methods does an edit-config operation on the openROADM device in
* order to create the OTN given interface.
*
+ * @param <T> specified type of object
* @param nodeId node ID
* @param ifBuilder Builder object containing the data to post
* @throws OpenRoadmInterfaceException OpenRoadm Interface Exception
@Test
public void testOnDataTreeChanged() {
- final DataObjectModification<Node> newNode = mock(DataObjectModification.class);
+ @SuppressWarnings("unchecked") final DataObjectModification<Node> newNode = mock(DataObjectModification.class);
when(newNode.getModificationType()).thenReturn(DataObjectModification.ModificationType.WRITE);
final Collection<DataTreeModification<Node>> changes = new HashSet<>();
- final DataTreeModification<Node> ch = mock(DataTreeModification.class);
+ @SuppressWarnings("unchecked") final DataTreeModification<Node> ch = mock(DataTreeModification.class);
changes.add(ch);
when(ch.getRootNode()).thenReturn(newNode);