diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java index dd7e33bb47..d89439e9d8 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/config/ImageAdapterTest.java @@ -55,7 +55,7 @@ public class ImageAdapterTest { assertNotNull(container.image.getBlockDeviceMapping()); assertEquals(container.image.getBlockDeviceMapping().size(), 1); - assertEquals(new Integer(2), getOnlyElement(container.image.getBlockDeviceMapping()).getBootIndex()); + assertEquals(Integer.valueOf(2), getOnlyElement(container.image.getBlockDeviceMapping()).getBootIndex()); assertEquals("snapshot", getOnlyElement(container.image.getBlockDeviceMapping()).getSourceType()); } diff --git a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java index 7971451b72..af81b8b385 100644 --- a/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java +++ b/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/features/ImageApiMockTest.java @@ -48,7 +48,7 @@ public class ImageApiMockTest extends BaseOpenStackMockTest { assertEquals(1, img.getBlockDeviceMapping().size()); BlockDeviceMapping blockDeviceMapping = img.getBlockDeviceMapping().get(0); assertEquals("snapshot", blockDeviceMapping.getSourceType()); - assertEquals(new Integer(2), blockDeviceMapping.getBootIndex()); + assertEquals(Integer.valueOf(2), blockDeviceMapping.getBootIndex()); } finally { server.shutdown(); }