Skip to content
Permalink
Browse files
Use hasItems instead of containsInAnyOrder to verify list of blob con…
…tainers
  • Loading branch information
jamesnetherton committed Apr 5, 2022
1 parent 02191fa commit 936ed3e9286785b4c1d63f3ab42c09dd2fbbc39a
Showing 1 changed file with 3 additions and 3 deletions.
@@ -44,7 +44,7 @@
import org.testcontainers.shaded.org.awaitility.Awaitility;

import static org.hamcrest.Matchers.anyOf;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.StringEndsWith.endsWith;
import static org.hamcrest.text.MatchesPattern.matchesPattern;
@@ -375,7 +375,7 @@ public void blobContainer() {
.then()
.statusCode(200)
.body("containers.name",
containsInAnyOrder(containerName, alternativeContainerName));
hasItems(containerName, alternativeContainerName));
} finally {
// Delete
RestAssured.given()
@@ -404,7 +404,7 @@ public void copyBlob() {
.then()
.statusCode(200)
.body("containers.name",
containsInAnyOrder(containerName, alternativeContainerName));
hasItems(containerName, alternativeContainerName));

// Create blob in first container
RestAssured.given()

0 comments on commit 936ed3e

Please sign in to comment.