mirror of https://github.com/apache/jclouds.git
Address Checkstyle violations
This commit is contained in:
parent
a45124c51a
commit
24a7c4d195
|
@ -18,7 +18,6 @@ package org.jclouds.openstack.nova.v2_0.predicates;
|
|||
|
||||
import com.google.common.base.Predicate;
|
||||
import org.jclouds.openstack.nova.v2_0.domain.Server;
|
||||
import org.jclouds.openstack.nova.v2_0.domain.ServerCreated;
|
||||
import org.jclouds.openstack.nova.v2_0.features.ServerApi;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
|
|
|
@ -19,7 +19,10 @@ package org.jclouds.openstack.nova.v2_0.internal;
|
|||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
|
||||
import com.google.common.collect.*;
|
||||
import com.google.common.collect.ComparisonChain;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.collect.Iterables;
|
||||
import com.google.common.collect.Ordering;
|
||||
import org.jclouds.apis.BaseApiLiveTest;
|
||||
import org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties;
|
||||
import org.jclouds.openstack.nova.v2_0.NovaApi;
|
||||
|
|
|
@ -25,8 +25,12 @@ import org.testng.annotations.Test;
|
|||
|
||||
import static org.jclouds.openstack.nova.v2_0.domain.Server.Status.ACTIVE;
|
||||
import static org.jclouds.openstack.nova.v2_0.domain.Server.Status.SHUTOFF;
|
||||
import static org.jclouds.openstack.nova.v2_0.predicates.ServerPredicates.*;
|
||||
import static org.testng.Assert.*;
|
||||
import static org.jclouds.openstack.nova.v2_0.predicates.ServerPredicates.awaitActive;
|
||||
import static org.jclouds.openstack.nova.v2_0.predicates.ServerPredicates.awaitShutoff;
|
||||
import static org.jclouds.openstack.nova.v2_0.predicates.ServerPredicates.awaitStatus;
|
||||
import static org.testng.Assert.assertEquals;
|
||||
import static org.testng.Assert.assertFalse;
|
||||
import static org.testng.Assert.assertTrue;
|
||||
|
||||
@Test(groups = "unit", testName = "ServerPredicatesMockTest")
|
||||
public class ServerPredicatesMockTest extends BaseOpenStackMockTest<NovaApi> {
|
||||
|
@ -41,7 +45,7 @@ public class ServerPredicatesMockTest extends BaseOpenStackMockTest<NovaApi> {
|
|||
|
||||
try {
|
||||
NovaApi novaApi = api(server.getUrl("/").toString(), "openstack-nova");
|
||||
ServerApi serverApi = novaApi.getServerApiForZone(("RegionOne"));
|
||||
ServerApi serverApi = novaApi.getServerApiForZone("RegionOne");
|
||||
|
||||
boolean result = awaitActive(serverApi).apply("52415800-8b69-11e0-9b19-734f000004d2");
|
||||
|
||||
|
@ -66,7 +70,7 @@ public class ServerPredicatesMockTest extends BaseOpenStackMockTest<NovaApi> {
|
|||
|
||||
try {
|
||||
NovaApi novaApi = api(server.getUrl("/").toString(), "openstack-nova");
|
||||
ServerApi serverApi = novaApi.getServerApiForZone(("RegionOne"));
|
||||
ServerApi serverApi = novaApi.getServerApiForZone("RegionOne");
|
||||
|
||||
boolean result = awaitShutoff(serverApi).apply("52415800-8b69-11e0-9b19-734f000004d2");
|
||||
|
||||
|
@ -88,7 +92,7 @@ public class ServerPredicatesMockTest extends BaseOpenStackMockTest<NovaApi> {
|
|||
|
||||
try {
|
||||
NovaApi novaApi = api(server.getUrl("/").toString(), "openstack-nova");
|
||||
ServerApi serverApi = novaApi.getServerApiForZone(("RegionOne"));
|
||||
ServerApi serverApi = novaApi.getServerApiForZone("RegionOne");
|
||||
|
||||
boolean result = awaitStatus(serverApi, ACTIVE, 3, 1).apply("52415800-8b69-11e0-9b19-734f000004d2");
|
||||
|
||||
|
|
Loading…
Reference in New Issue