Fixed checkstyle violations

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

View File

@ -55,7 +55,7 @@ public class ImageAdapterTest {
assertNotNull(container.image.getBlockDeviceMapping()); assertNotNull(container.image.getBlockDeviceMapping());
assertEquals(container.image.getBlockDeviceMapping().size(), 1); 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()); assertEquals("snapshot", getOnlyElement(container.image.getBlockDeviceMapping()).getSourceType());
} }

View File

@ -48,7 +48,7 @@ public class ImageApiMockTest extends BaseOpenStackMockTest<NovaApi> {
assertEquals(1, img.getBlockDeviceMapping().size()); assertEquals(1, img.getBlockDeviceMapping().size());
BlockDeviceMapping blockDeviceMapping = img.getBlockDeviceMapping().get(0); BlockDeviceMapping blockDeviceMapping = img.getBlockDeviceMapping().get(0);
assertEquals("snapshot", blockDeviceMapping.getSourceType()); assertEquals("snapshot", blockDeviceMapping.getSourceType());
assertEquals(new Integer(2), blockDeviceMapping.getBootIndex()); assertEquals(Integer.valueOf(2), blockDeviceMapping.getBootIndex());
} finally { } finally {
server.shutdown(); server.shutdown();
} }