Bump version odlparent->6.0.0,mdsal->5.0.3
[genius.git] / interfacemanager / interfacemanager-impl / src / test / java / org / opendaylight / genius / interfacemanager / test / IfmUtilTest.java
index 2d48e3d524170c0c1a42be974877a6e610e5ebb5..4e2283a9b80ffc7204db2163b74e31a977f8f969 100644 (file)
@@ -5,19 +5,18 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.genius.interfacemanager.test;
 
 import static org.junit.Assert.assertEquals;
 import static org.mockito.Mockito.when;
 
-import java.math.BigInteger;
 import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Mock;
 import org.mockito.MockitoAnnotations;
 import org.opendaylight.genius.interfacemanager.IfmUtil;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorId;
+import org.opendaylight.yangtools.yang.common.Uint64;
 
 public class IfmUtilTest {
 
@@ -31,9 +30,9 @@ public class IfmUtilTest {
 
     @Test
     public void testDpnConversions() {
-        String nodeId = IfmUtil.buildDpnNodeId(BigInteger.valueOf(101)).getValue();
+        String nodeId = IfmUtil.buildDpnNodeId(Uint64.valueOf(101)).getValue();
         assertEquals("openflow:101", nodeId);
         when(ncId.getValue()).thenReturn("openflow:101:11");
-        assertEquals(new BigInteger("101"), IfmUtil.getDpnFromNodeConnectorId(ncId));
+        assertEquals(Uint64.valueOf(101), IfmUtil.getDpnFromNodeConnectorId(ncId));
     }
 }