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 42e95e72a090cd2e8e057de6faac36545560dc1b Author: Benoit Tellier <[email protected]> AuthorDate: Thu Sep 12 14:47:30 2019 +0700 JAMES-2855 Remove an hamcrest deprecated call --- .../src/test/java/org/apache/james/jmap/JmapCommonRequests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JmapCommonRequests.java b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JmapCommonRequests.java index 4e55f4d..9f3b01b 100644 --- a/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JmapCommonRequests.java +++ b/server/protocols/jmap-draft-integration-testing/jmap-draft-integration-testing-common/src/test/java/org/apache/james/jmap/JmapCommonRequests.java @@ -24,8 +24,9 @@ import static org.hamcrest.Matchers.contains; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasKey; import static org.hamcrest.Matchers.hasSize; -import static org.hamcrest.Matchers.isEmptyOrNullString; import static org.hamcrest.Matchers.not; +import static org.hamcrest.core.Is.is; +import static org.hamcrest.text.IsEmptyString.emptyOrNullString; import java.util.List; import java.util.Map; @@ -184,7 +185,7 @@ public class JmapCommonRequests { .expectBody(NAME, equalTo("messagesSet")) .expectBody(ARGUMENTS + ".updated", hasSize(1)) .expectBody(ARGUMENTS + ".updated", contains(messageId)) - .expectBody(ARGUMENTS + ".error", isEmptyOrNullString()) + .expectBody(ARGUMENTS + ".error", is(emptyOrNullString())) .expectBody(NOT_UPDATED, not(hasKey(messageId))); return builder.build(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
