import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
-import java.math.BigInteger;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.OpendaylightFlowStatisticsService;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.FeaturesReply;
import org.opendaylight.yangtools.yang.binding.RpcService;
+import org.opendaylight.yangtools.yang.common.Uint64;
@RunWith(MockitoJUnitRunner.class)
public class MdSalRegistrationUtilsTest {
@Mock
private FeaturesReply mockedFeatures;
@Mock
- private BigInteger mockedDataPathId;
- @Mock
private ExtensionConverterProvider extensionConverterProvider;
@Mock
private NotificationPublishService notificationPublishService;
convertorManager = ConvertorManagerFactory.createDefaultManager();
when(mockedDeviceContext.getDeviceInfo()).thenReturn(mockedDeviceInfo);
when(mockedConnectionContext.getFeatures()).thenReturn(mockedFeatures);
- when(mockedDeviceInfo.getDatapathId()).thenReturn(mockedDataPathId);
+ when(mockedDeviceInfo.getDatapathId()).thenReturn(Uint64.valueOf(12345));
when(mockedDeviceContext.getPrimaryConnectionContext()).thenReturn(mockedConnectionContext);
}