This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 18b7dd9213226b2f96495108628c8dfa6593b8b9
Author: Benoit Tellier <btell...@linagora.com>
AuthorDate: Thu Feb 21 10:06:26 2019 +0700

    JAMES-2661 WebAdmin for EventDeadLetter: List failed events
---
 .../james/webadmin/routes/EventDeadLettersRoutesTest.java      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/routes/EventDeadLettersRoutesTest.java
 
b/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/routes/EventDeadLettersRoutesTest.java
index 0afee01..e4e8a31 100644
--- 
a/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/routes/EventDeadLettersRoutesTest.java
+++ 
b/server/protocols/webadmin/webadmin-mailbox/src/test/java/org/apache/james/webadmin/routes/EventDeadLettersRoutesTest.java
@@ -198,7 +198,7 @@ class EventDeadLettersRoutesTest {
             .then()
                 .statusCode(HttpStatus.OK_200)
                 .contentType(ContentType.JSON)
-                .body(".", contains(UUID_1));
+                .body(".", containsInAnyOrder(UUID_1));
         }
 
         @Test
@@ -211,7 +211,7 @@ class EventDeadLettersRoutesTest {
             .then()
                 .statusCode(HttpStatus.OK_200)
                 .contentType(ContentType.JSON)
-                .body(".", contains(UUID_1));
+                .body(".", containsInAnyOrder(UUID_1));
         }
 
         @Test
@@ -235,7 +235,7 @@ class EventDeadLettersRoutesTest {
             deadLetters.store(new EventBusTestFixture.GroupA(), 
EVENT_1).block();
 
             String response = when()
-                .get("/events/deadLetter/groups/" + new 
EventBusTestFixture.GroupA().asString() + "/events/" + UUID_1)
+                .get("/events/deadLetter/groups/" + SERIALIZED_GROUP_A + 
"/events/" + UUID_1)
             .then()
                 .statusCode(HttpStatus.OK_200)
                 .contentType(ContentType.JSON)
@@ -248,7 +248,7 @@ class EventDeadLettersRoutesTest {
         @Test
         void getEventShouldReturn404WhenNotFound() {
             when()
-                .get("/events/deadLetter/groups/" + new 
EventBusTestFixture.GroupA().asString() + "/events/" + UUID_1)
+                .get("/events/deadLetter/groups/" + SERIALIZED_GROUP_A + 
"/events/" + UUID_1)
             .then()
                 .statusCode(HttpStatus.NOT_FOUND_404);
         }
@@ -256,7 +256,7 @@ class EventDeadLettersRoutesTest {
         @Test
         void getEventShouldFailWhenInvalidEventId() {
             when()
-                .get("/events/deadLetter/groups/" + new 
EventBusTestFixture.GroupA().asString() + "/events/invalid")
+                .get("/events/deadLetter/groups/" + SERIALIZED_GROUP_A + 
"/events/invalid")
             .then()
                 .statusCode(HttpStatus.BAD_REQUEST_400)
                 .contentType(ContentType.JSON)


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to