Fix generics for JDK 8
authorStephen Kitt <skitt@redhat.com>
Wed, 27 Jan 2016 13:49:24 +0000 (14:49 +0100)
committerStephen Kitt <skitt@redhat.com>
Wed, 27 Jan 2016 13:49:24 +0000 (14:49 +0100)
Change-Id: I473fcee5429f9b7736b175ed4633cc9d7dafded2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
openstack/net-virt/src/test/java/org/opendaylight/ovsdb/openstack/netvirt/impl/NeutronL3AdapterTest.java

index 4665ea3850873d5fa0bc479a60811cc86fbc363a..6d92e0288ba8dd179fa7a1281089033d2c154727 100644 (file)
@@ -872,7 +872,7 @@ public class NeutronL3AdapterTest {
 
     @Test
     public void testGetMaskLenFromCidr() throws Exception {
-        assertEquals("Error, did not return the correct mask", 32, Whitebox.invokeMethod(neutronL3Adapter, "getMaskLenFromCidr", IP_MASK));
+        assertEquals("Error, did not return the correct mask", 32, (int) Whitebox.invokeMethod(neutronL3Adapter, "getMaskLenFromCidr", IP_MASK));
     }
 
     @Test
@@ -887,7 +887,7 @@ public class NeutronL3AdapterTest {
         PowerMockito.when(configurationService.getIntegrationBridgeName()).thenReturn("");
         PowerMockito.when(southbound.getDataPathId(any(Node.class))).thenReturn(45L);
 
-        assertEquals("Error, did not return the correct Dpid", 45L, Whitebox.invokeMethod(neutronL3Adapter, "getDpidForIntegrationBridge", mock(Node.class)));
+        assertEquals("Error, did not return the correct Dpid", 45L, (long) Whitebox.invokeMethod(neutronL3Adapter, "getDpidForIntegrationBridge", mock(Node.class)));
     }
 
     @Test