|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -import static junit.framework.TestCase.assertNotNull; |
18 |
| -import static org.hamcrest.MatcherAssert.assertThat; |
19 |
| - |
20 | 17 | import com.google.api.gax.longrunning.OperationFuture;
|
21 |
| -import com.google.cloud.dataproc.v1.*; |
| 18 | +import com.google.cloud.dataproc.v1.AutoscalingPolicyName; |
| 19 | +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceClient; |
| 20 | +import com.google.cloud.dataproc.v1.AutoscalingPolicyServiceSettings; |
| 21 | +import com.google.cloud.dataproc.v1.ClusterControllerClient; |
| 22 | +import com.google.cloud.dataproc.v1.ClusterControllerSettings; |
| 23 | +import com.google.cloud.dataproc.v1.ClusterOperationMetadata; |
22 | 24 | import com.google.protobuf.Empty;
|
23 |
| -import java.io.ByteArrayOutputStream; |
24 |
| -import java.io.IOException; |
25 |
| -import java.io.PrintStream; |
26 |
| -import java.util.UUID; |
27 |
| -import java.util.concurrent.ExecutionException; |
28 | 25 | import org.hamcrest.CoreMatchers;
|
29 | 26 | import org.junit.After;
|
30 | 27 | import org.junit.Before;
|
|
33 | 30 | import org.junit.runner.RunWith;
|
34 | 31 | import org.junit.runners.JUnit4;
|
35 | 32 |
|
| 33 | +import java.io.ByteArrayOutputStream; |
| 34 | +import java.io.IOException; |
| 35 | +import java.io.PrintStream; |
| 36 | +import java.util.UUID; |
| 37 | +import java.util.concurrent.ExecutionException; |
| 38 | + |
| 39 | +import static junit.framework.TestCase.assertNotNull; |
| 40 | +import static org.hamcrest.MatcherAssert.assertThat; |
| 41 | + |
36 | 42 | @RunWith(JUnit4.class)
|
37 | 43 | public class CreateClusterWithAutoscalingTest {
|
38 | 44 |
|
@@ -75,7 +81,7 @@ public void tearDown() throws IOException, InterruptedException, ExecutionExcept
|
75 | 81 |
|
76 | 82 | try (ClusterControllerClient clusterControllerClient =
|
77 | 83 | ClusterControllerClient.create(clusterControllerSettings);
|
78 |
| - AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = |
| 84 | + AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = |
79 | 85 | AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings)) {
|
80 | 86 |
|
81 | 87 | OperationFuture<Empty, ClusterOperationMetadata> deleteClusterAsyncRequest =
|
|
0 commit comments