james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [12/15] james-project git commit: JAMES-2090 Add soft asserts to CassandraConfiguration test
Date Thu, 06 Jul 2017 12:13:18 GMT
JAMES-2090 Add soft asserts to CassandraConfiguration test


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

Branch: refs/heads/master
Commit: 54429834c1c0e3f42be7dafb0e197fb52ac41984
Parents: a66c080
Author: benwa <btellier@linagora.com>
Authored: Thu Jul 6 08:45:02 2017 +0700
Committer: benwa <btellier@linagora.com>
Committed: Thu Jul 6 08:48:54 2017 +0700

----------------------------------------------------------------------
 .../cassandra/CassandraConfigurationTest.java   | 22 ++++++++++++--------
 1 file changed, 13 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/54429834/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraConfigurationTest.java
----------------------------------------------------------------------
diff --git a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraConfigurationTest.java
b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraConfigurationTest.java
index dec62ea..10f111e 100644
--- a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraConfigurationTest.java
+++ b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraConfigurationTest.java
@@ -21,6 +21,7 @@ package org.apache.james.backends.cassandra;
 
 import static org.assertj.core.api.Assertions.assertThat;
 
+import org.assertj.core.api.JUnitSoftAssertions;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -32,6 +33,9 @@ public class CassandraConfigurationTest {
     @Rule
     public ExpectedException expectedException = ExpectedException.none();
 
+    @Rule
+    public final JUnitSoftAssertions softly = new JUnitSoftAssertions();
+
     @Test
     public void cassandraConfigurationShouldRespectBeanContract() {
         EqualsVerifier.forClass(CassandraConfiguration.class).verify();
@@ -211,15 +215,15 @@ public class CassandraConfigurationTest {
             .expungeChunkSize(expungeChunkSize)
             .build();
 
-        assertThat(configuration.getAclMaxRetry()).isEqualTo(aclMaxRetry);
-        assertThat(configuration.getModSeqMaxRetry()).isEqualTo(modSeqMaxRetry);
-        assertThat(configuration.getUidMaxRetry()).isEqualTo(uidMaxRetry);
-        assertThat(configuration.getFetchNextPageInAdvanceRow()).isEqualTo(fetchNextPageInAdvanceRow);
-        assertThat(configuration.getFlagsUpdateMessageMaxRetry()).isEqualTo(flagsUpdateMessageMaxRetry);
-        assertThat(configuration.getFlagsUpdateMessageIdMaxRetry()).isEqualTo(flagsUpdateMessageIdMaxRetry);
-        assertThat(configuration.getFlagsUpdateChunkSize()).isEqualTo(flagsUpdateChunkSize);
-        assertThat(configuration.getMessageReadChunkSize()).isEqualTo(messageReadChunkSize);
-        assertThat(configuration.getExpungeChunkSize()).isEqualTo(expungeChunkSize);
+        softly.assertThat(configuration.getAclMaxRetry()).isEqualTo(aclMaxRetry);
+        softly.assertThat(configuration.getModSeqMaxRetry()).isEqualTo(modSeqMaxRetry);
+        softly.assertThat(configuration.getUidMaxRetry()).isEqualTo(uidMaxRetry);
+        softly.assertThat(configuration.getFetchNextPageInAdvanceRow()).isEqualTo(fetchNextPageInAdvanceRow);
+        softly.assertThat(configuration.getFlagsUpdateMessageMaxRetry()).isEqualTo(flagsUpdateMessageMaxRetry);
+        softly.assertThat(configuration.getFlagsUpdateMessageIdMaxRetry()).isEqualTo(flagsUpdateMessageIdMaxRetry);
+        softly.assertThat(configuration.getFlagsUpdateChunkSize()).isEqualTo(flagsUpdateChunkSize);
+        softly.assertThat(configuration.getMessageReadChunkSize()).isEqualTo(messageReadChunkSize);
+        softly.assertThat(configuration.getExpungeChunkSize()).isEqualTo(expungeChunkSize);
     }
 
 }


---------------------------------------------------------------------
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