|
15 | 15 |
|
16 | 16 | package software.amazon.awssdk.services.autoscaling;
|
17 | 17 |
|
| 18 | +import static org.assertj.core.api.Assertions.assertThat; |
18 | 19 | import static org.hamcrest.Matchers.containsInAnyOrder;
|
19 | 20 | import static org.junit.Assert.assertEquals;
|
20 | 21 | import static org.junit.Assert.assertNotNull;
|
21 |
| -import static org.junit.Assert.assertThat; |
22 | 22 | import static org.junit.Assert.assertTrue;
|
23 | 23 | import static software.amazon.awssdk.testutils.SdkAsserts.assertNotEmpty;
|
24 | 24 |
|
@@ -246,8 +246,8 @@ public void testLaunchConfigurationOperations() throws Exception {
|
246 | 246 | assertEquals("default", launchConfiguration.securityGroups().get(0));
|
247 | 247 | assertEquals(encodedUserData, launchConfiguration.userData());
|
248 | 248 | assertEquals(false, launchConfiguration.associatePublicIpAddress());
|
249 |
| - assertThat(result.launchConfigurations().get(0).blockDeviceMappings(), |
250 |
| - containsInAnyOrder(blockDeviceMapping1, blockDeviceMapping2)); |
| 249 | + assertThat(result.launchConfigurations().get(0).blockDeviceMappings()).contains( |
| 250 | + blockDeviceMapping1, blockDeviceMapping2); |
251 | 251 |
|
252 | 252 | // Delete it
|
253 | 253 | autoscaling.deleteLaunchConfiguration(DeleteLaunchConfigurationRequest.builder()
|
@@ -599,8 +599,8 @@ public void testTagging() {
|
599 | 599 | public void testDescribeTerminationPolicyTypes() {
|
600 | 600 | DescribeTerminationPolicyTypesResponse describeAdjustmentTypesResult = autoscaling
|
601 | 601 | .describeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest.builder().build());
|
602 |
| - assertEquals(TERMINATION_POLICIES.toArray(), describeAdjustmentTypesResult.terminationPolicyTypes() |
603 |
| - .toArray()); |
| 602 | + |
| 603 | + assertThat(describeAdjustmentTypesResult.terminationPolicyTypes()).containsAll(TERMINATION_POLICIES); |
604 | 604 | }
|
605 | 605 |
|
606 | 606 | private Collection<Tag> convertTagList(Map<String, String> tags, String groupName) {
|
|
0 commit comments