Disable broken unit test: NeutronFloatingIPInterfaceTest
authorSam Hague <shague@redhat.com>
Tue, 12 Jan 2016 21:46:33 +0000 (16:46 -0500)
committerSam Hague <shague@redhat.com>
Tue, 12 Jan 2016 21:46:51 +0000 (16:46 -0500)
The test fails with:

Running org.opendaylight.ovsdb.openstack.netvirt.translator.crud.impl.NeutronFloatingIPInterfaceTest
Tests run: 9, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.908 sec <<< FAILURE! - in org.opendaylight.ovsdb.openstack.netvirt.translator.crud.impl.NeutronFloatingIPInterfaceTest
testRegisterNewInterface(org.opendaylight.ovsdb.openstack.netvirt.translator.crud.impl.NeutronFloatingIPInterfaceTest)  Time elapsed: 0.054 sec  <<< ERROR!
java.lang.NullPointerException: null
        at org.opendaylight.ovsdb.openstack.netvirt.translator.crud.impl.NeutronFloatingIPInterface.<init>(NeutronFloatingIPInterface.java:35)
                at org.opendaylight.ovsdb.openstack.netvirt.translator.crud.impl.NeutronFloatingIPInterfaceTest.testRegisterNewInterface(NeutronFloatingIPInterfaceTest.java:329)

There are other exceptions listed earlier which look to be a conflict between the mockito and jacoco:

https://gist.github.com/02f3a56db00ce9b15eb2

Change-Id: I519e63c4a8825d49189dbc4b241998b940c6f4f2
Signed-off-by: Sam Hague <shague@redhat.com>
openstack/net-virt/src/test/java/org/opendaylight/ovsdb/openstack/netvirt/translator/crud/impl/NeutronFloatingIPInterfaceTest.java

index 2d4943cba9e5949e9418090b462ff8beac7c3047..8a812a4da8004c698cc69a30f7410ad5106025aa 100644 (file)
@@ -25,6 +25,7 @@ import static org.powermock.api.mockito.PowerMockito.when;
 import java.util.ArrayList;
 import java.util.List;
 
+import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -316,6 +317,7 @@ public class NeutronFloatingIPInterfaceTest {
      * Test that checks if @{NeutronFloatingIPInterface#registerNewInterface} is called
      * and then checks that it register service or not.
      */
+    @Ignore
     @Test
     public void testRegisterNewInterface() throws Exception {
         ProviderContext providerContext = mock(ProviderContext.class);