From 8914a3a748429c676e276e02c2444b062133eeba Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Thu, 8 May 2014 13:30:23 -0700 Subject: [PATCH] Enable whitespace around Checkstyle rule --- ...udStackSecurityGroupExtensionLiveTest.java | 2 +- .../VirtualMachineToNodeMetadataTest.java | 2 +- .../strategy/OptionsConverterTest.java | 2 +- .../cloudstack/features/ISOApiExpectTest.java | 2 +- .../features/TemplateApiLiveTest.java | 4 +- .../features/VolumeApiLiveTest.java | 12 +++--- .../compute/domain/EC2HardwareBuilder.java | 2 +- .../ec2/compute/EC2TemplateBuilderTest.java | 2 +- .../compute/TestCanRecreateGroupLiveTest.java | 2 +- .../internal/EC2TemplateBuilderImplTest.java | 2 +- .../v2_0/domain/PaginatedCollection.java | 2 +- .../functions/ServerInZoneToNodeMetadata.java | 2 +- .../ServerInZoneToNodeMetadataTest.java | 2 +- .../AvailabilityZoneApiExpectTest.java | 2 +- .../v2_0/features/ImageApiExpectTest.java | 2 +- .../v2_0/features/ServerApiExpectTest.java | 6 +-- .../nova/v2_0/features/ServerApiLiveTest.java | 6 +-- .../v2_0/handlers/NovaErrorHandlerTest.java | 2 +- .../predicates/ServerPredicatesMockTest.java | 2 +- .../v1/binders/BindCreateUserToJson.java | 2 +- .../trove/v1/binders/BindGrantUserToJson.java | 4 +- .../openstack/trove/v1/domain/User.java | 2 +- .../v1/features/DatabaseApiLiveTest.java | 4 +- .../v1/features/InstanceApiLiveTest.java | 2 +- .../trove/v1/features/UserApiLiveTest.java | 10 ++--- .../v1/binders/UpdateDomainsToJSON.java | 2 +- .../v1/binders/UpdateRecordsToJSON.java | 2 +- .../clouddns/v1/functions/ParseDomain.java | 2 +- .../v1/features/DomainApiExpectTest.java | 8 ++-- .../v1/features/DomainApiLiveTest.java | 10 ++--- .../v1/features/RecordApiExpectTest.java | 6 +-- .../v1/features/RecordApiLiveTest.java | 4 +- .../v1/features/ReverseDNSApiExpectTest.java | 4 +- .../v1/features/ReverseDNSApiLiveTest.java | 2 +- .../v1/functions/ParseAlgorithms.java | 2 +- .../v1/functions/ParseMetadata.java | 2 +- .../v1/features/AccessRuleApiLiveTest.java | 4 +- .../v1/features/ConnectionApiLiveTest.java | 2 +- .../features/ContentCachingApiLiveTest.java | 2 +- .../v1/features/ErrorPageApiLiveTest.java | 2 +- .../v1/features/HealthMonitorApiLiveTest.java | 2 +- .../v1/features/LoadBalancerApiLiveTest.java | 12 +++--- .../v1/features/ReportApiLiveTest.java | 2 +- .../features/SSLTerminationApiLiveTest.java | 2 +- .../SessionPersistenceApiLiveTest.java | 2 +- .../v1/features/VirtualIPApiLiveTest.java | 2 +- .../jclouds/s3/services/BucketsLiveTest.java | 2 +- ...dersWithContainerDeleteMetadataPrefix.java | 2 +- .../swift/CommonSwiftClientLiveTest.java | 2 +- .../swift/internal/BaseSwiftExpectTest.java | 4 +- .../BaseVCloudComputeServiceExpectTest.java | 18 ++++----- .../StubComputeServiceIntegrationTest.java | 2 +- ...SecurityGroupExtensionIntegrationTest.java | 2 +- .../java/org/jclouds/ContextBuilderTest.java | 2 +- .../java/org/jclouds/PerformanceTest.java | 2 +- .../org/jclouds/logging/BufferLogger.java | 10 ++--- .../rest/internal/BaseRestApiTest.java | 2 +- .../org/jclouds/util/Predicates2Test.java | 12 +++--- .../org/jclouds/gae/GaeSocketOpenTest.java | 2 +- .../ssh/jsch/JschSshClientLiveTest.java | 8 ++-- .../glesys/features/ServerApiLiveTest.java | 2 +- .../SoftLayerTemplateBuilderLiveTest.java | 12 +++--- .../features/AccountApiLiveTest.java | 2 +- .../features/DatacenterApiLiveTest.java | 6 +-- resources/checkstyle.xml | 4 ++ .../scriptbuilder/domain/SwitchArgTest.java | 20 +++++----- .../statements/login/SudoStatementsTest.java | 8 ++-- .../ssh/AuthorizeRSAPublicKeyTest.java | 40 +++++++++---------- .../ssh/InstallRSAPrivateKeyTest.java | 28 ++++++------- 69 files changed, 177 insertions(+), 173 deletions(-) diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/extensions/CloudStackSecurityGroupExtensionLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/extensions/CloudStackSecurityGroupExtensionLiveTest.java index 973c164e54c..742386cd5ed 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/extensions/CloudStackSecurityGroupExtensionLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/extensions/CloudStackSecurityGroupExtensionLiveTest.java @@ -46,7 +46,7 @@ public void setupContext() { super.setupContext(); CloudStackApi api = view.unwrapApi(CloudStackApi.class); - for (Zone z: api.getZoneApi().listZones()) { + for (Zone z : api.getZoneApi().listZones()) { if (z.isSecurityGroupsEnabled()) { zone = z; break; diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/functions/VirtualMachineToNodeMetadataTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/functions/VirtualMachineToNodeMetadataTest.java index 97b8c338e51..266c1aef0ca 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/functions/VirtualMachineToNodeMetadataTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/functions/VirtualMachineToNodeMetadataTest.java @@ -106,7 +106,7 @@ public Set load(String arg0) throws Exception { } }), namingConvention); - VirtualMachine guest =VirtualMachine.builder() + VirtualMachine guest = VirtualMachine.builder() .id("54") .name("i-3-54-VM") .displayName("i-3-54-VM") diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/strategy/OptionsConverterTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/strategy/OptionsConverterTest.java index fecd79b7a0d..0ec0ea5884f 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/strategy/OptionsConverterTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/compute/strategy/OptionsConverterTest.java @@ -29,7 +29,7 @@ import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; -@Test(singleThreaded = true, testName="OptionsConverterTest") +@Test(singleThreaded = true, testName = "OptionsConverterTest") public class OptionsConverterTest { private static final Map EMPTY_NETWORKS_MAP = ImmutableMap.of(); diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/ISOApiExpectTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/ISOApiExpectTest.java index 52ceee5c583..260f54d7d63 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/ISOApiExpectTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/ISOApiExpectTest.java @@ -205,7 +205,7 @@ public void testRegisterISOsWhenResponseIs2xx() { .isExtractable(false).build()); } - @Test(expectedExceptions=ResourceNotFoundException.class) + @Test(expectedExceptions = ResourceNotFoundException.class) public void testRegisterISOWhenResponseIs404() { ISOApi client = requestSendsResponse(registerIso, HttpResponse.builder() diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateApiLiveTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateApiLiveTest.java index e0a025b344e..a2f3dd368d7 100644 --- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateApiLiveTest.java +++ b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/TemplateApiLiveTest.java @@ -123,7 +123,7 @@ public boolean apply(Network network) { // Create a template CreateTemplateOptions options = CreateTemplateOptions.Builder.volumeId(volume.getId()); - AsyncCreateResponse response = client.getTemplateApi().createTemplate(TemplateMetadata.builder().name(prefix+"-createTemplate").osTypeId(vmForCreation.getGuestOSId()).displayText("jclouds live testCreateTemplate").build(), options); + AsyncCreateResponse response = client.getTemplateApi().createTemplate(TemplateMetadata.builder().name(prefix + "-createTemplate").osTypeId(vmForCreation.getGuestOSId()).displayText("jclouds live testCreateTemplate").build(), options); assertTrue(jobComplete.apply(response.getJobId()), vmForCreation.toString()); createdTemplate = client.getTemplateApi().getTemplateInZone(response.getId(), vmForCreation.getZoneId()); @@ -168,7 +168,7 @@ public boolean apply(Network network) { // Register a template RegisterTemplateOptions options = RegisterTemplateOptions.Builder.bits(32).isExtractable(true); - TemplateMetadata templateMetadata = TemplateMetadata.builder().name(prefix+"-registerTemplate").osTypeId(osType.getId()).displayText("jclouds live testRegisterTemplate").build(); + TemplateMetadata templateMetadata = TemplateMetadata.builder().name(prefix + "-registerTemplate").osTypeId(osType.getId()).displayText("jclouds live testRegisterTemplate").build(); Set