You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/11/19 02:43:45 UTC
[james-project] 43/43: JAMES-2964 fix wrong unit test in DTOTest
using json assertions on domain objects
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 e477ab57c29400f8dc72039237ef6c3de5c4c7a1
Author: RĂ©mi KOWALSKI <rk...@linagora.com>
AuthorDate: Tue Nov 12 17:24:52 2019 +0100
JAMES-2964 fix wrong unit test in DTOTest using json assertions on domain objects
---
.../org/apache/james/mailbox/quota/cassandra/dto/DTOTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/mailbox/plugin/quota-mailing-cassandra/src/test/java/org/apache/james/mailbox/quota/cassandra/dto/DTOTest.java b/mailbox/plugin/quota-mailing-cassandra/src/test/java/org/apache/james/mailbox/quota/cassandra/dto/DTOTest.java
index d9a323d..2311487 100644
--- a/mailbox/plugin/quota-mailing-cassandra/src/test/java/org/apache/james/mailbox/quota/cassandra/dto/DTOTest.java
+++ b/mailbox/plugin/quota-mailing-cassandra/src/test/java/org/apache/james/mailbox/quota/cassandra/dto/DTOTest.java
@@ -155,7 +155,7 @@ class DTOTest {
@Test
void shouldDeserializeQuotaThresholdChangedEvent() throws Exception {
- assertThatJson(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
+ assertThat(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
.deserialize(EVENT_JSON))
.isEqualTo(EVENT);
}
@@ -169,7 +169,7 @@ class DTOTest {
@Test
void shouldDeserializeEvent2() throws Exception {
- assertThatJson(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
+ assertThat(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
.deserialize(EVENT_JSON_2))
.isEqualTo(EVENT_2);
}
@@ -183,7 +183,7 @@ class DTOTest {
@Test
void shouldDeserializeEvent3() throws Exception {
- assertThatJson(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
+ assertThat(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
.deserialize(EVENT_JSON_3))
.isEqualTo(EVENT_3);
}
@@ -197,7 +197,7 @@ class DTOTest {
@Test
void shouldDeserializeEvent4() throws Exception {
- assertThatJson(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
+ assertThat(new JsonEventSerializer(QuotaEventDTOModules.QUOTA_THRESHOLD_CHANGE)
.deserialize(EVENT_JSON_4))
.isEqualTo(EVENT_4);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org