- Mockito.when(deviceInfo.getNodeId()).thenReturn(NODE_ID);
- Mockito.when(deviceInfo.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
- Mockito.when(deviceInfo.getDatapathId()).thenReturn(BigInteger.TEN);
- Mockito.when(connectionContext.getFeatures()).thenReturn(features);
- Mockito.when(connectionContext.getOutboundQueueProvider()).thenReturn(outboundQueueProvider);
- Mockito.when(features.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
- Mockito.when(getFeaturesOutput.getDatapathId()).thenReturn(BigInteger.valueOf(123L));
- Mockito.when(getFeaturesOutput.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
+ Mockito.lenient().when(deviceInfo.getNodeId()).thenReturn(NODE_ID);
+ Mockito.lenient().when(deviceInfo.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
+ Mockito.lenient().when(deviceInfo.getDatapathId()).thenReturn(BigInteger.TEN);
+ Mockito.lenient().when(connectionContext.getFeatures()).thenReturn(features);
+ Mockito.lenient().when(connectionContext.getOutboundQueueProvider()).thenReturn(outboundQueueProvider);
+ Mockito.lenient().when(features.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);
+ Mockito.lenient().when(getFeaturesOutput.getDatapathId()).thenReturn(BigInteger.valueOf(123L));
+ Mockito.lenient().when(getFeaturesOutput.getVersion()).thenReturn(OFConstants.OFP_VERSION_1_3);