james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [12/12] james-project git commit: JAMES-2543 invert some assertions
Date Tue, 11 Sep 2018 09:06:48 GMT
JAMES-2543 invert some assertions


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/bf95a147
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/bf95a147
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/bf95a147

Branch: refs/heads/master
Commit: bf95a1474d56e1f22b1c390f34a15d36f4a356e5
Parents: e73667e
Author: Matthieu Baechler <matthieu@apache.org>
Authored: Mon Sep 10 21:24:21 2018 +0200
Committer: Matthieu Baechler <matthieu@apache.org>
Committed: Mon Sep 10 21:25:58 2018 +0200

----------------------------------------------------------------------
 core/src/test/java/org/apache/james/core/MailAddressTest.java      | 2 +-
 .../apache/james/mailbox/hbase/mail/HBaseMailboxMapperTest.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/bf95a147/core/src/test/java/org/apache/james/core/MailAddressTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/james/core/MailAddressTest.java b/core/src/test/java/org/apache/james/core/MailAddressTest.java
index 823e55c..b8f6986 100644
--- a/core/src/test/java/org/apache/james/core/MailAddressTest.java
+++ b/core/src/test/java/org/apache/james/core/MailAddressTest.java
@@ -101,7 +101,7 @@ public class MailAddressTest {
     public void testMailAddressString() throws AddressException {
 
         MailAddress a = new MailAddress(GOOD_ADDRESS);
-        assertThat(GOOD_ADDRESS).isEqualTo(a.toString());
+        assertThat(a.toString()).isEqualTo(GOOD_ADDRESS);
 
         for (String goodAddress : GOOD_ADDRESSES) {
             try {

http://git-wip-us.apache.org/repos/asf/james-project/blob/bf95a147/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/HBaseMailboxMapperTest.java
----------------------------------------------------------------------
diff --git a/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/HBaseMailboxMapperTest.java
b/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/HBaseMailboxMapperTest.java
index dfc7b3b..53ea5db 100644
--- a/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/HBaseMailboxMapperTest.java
+++ b/mailbox/hbase/src/test/java/org/apache/james/mailbox/hbase/mail/HBaseMailboxMapperTest.java
@@ -310,7 +310,7 @@ public class HBaseMailboxMapperTest {
                 bout.write(b);
             }
             String s = bout.toString();
-            assertThat(original).isEqualTo(s);
+            assertThat(s).isEqualTo(original);
         } finally {
             in.close();
             out.close();


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


Mime
View raw message