Fixed checkstyle violations

This commit is contained in:
Ignasi Barrera 2015-01-27 10:45:08 +01:00
parent 73600c8174
commit cc49f934d7
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}

View File

@ -48,7 +48,7 @@ public class ImageApiMockTest extends BaseOpenStackMockTest<NovaApi> {
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();
}