Enable PowerMock instrumentation with JaCoCo
authorStephen Kitt <skitt@redhat.com>
Tue, 12 Jan 2016 15:20:19 +0000 (16:20 +0100)
committerStephen Kitt <skitt@redhat.com>
Tue, 12 Jan 2016 15:20:19 +0000 (16:20 +0100)
commit51856288266072146e35bf2a73ce41c2a19efa81
treeb8fcd7fb1ea93635721f3cc793bbd7d2d7380d69
parent625bfdabba384cc3607da8279ef4ee052258fcbf
Enable PowerMock instrumentation with JaCoCo

By default PowerMock is incompatible with JaCoCo, even with the older
version of JaCoCo defined by odlparent: the tests run but their
coverage isn't measured. This patch forces offline instrumentation
which allows both PowerMock and JaCoCo to operate (more or less)
properly. There are a number of "class already instrumented" errors
but they don't affect the test results.

This patch also upgrades PowerMock to 1.6.4 (initially in the hope
that it would work with JaCoCo as-is); this requires an upgrade to
Mockito too. I'll drive these changes properly in odlparent and remove
the local overrides when appropriate!

Change-Id: I2ab704f7a28f325ed3bb5a75a6f34ffb6c3b36b3
Signed-off-by: Stephen Kitt <skitt@redhat.com>
openstack/net-virt-providers/pom.xml
openstack/net-virt-sfc/impl/pom.xml
openstack/net-virt/pom.xml
utils/config/pom.xml
utils/servicehelper/pom.xml