james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [4/4] james-project git commit: JAMES-2369 Relax PortTest assertion
Date Wed, 04 Apr 2018 02:57:13 GMT
JAMES-2369 Relax PortTest assertion

1024 is the first valid unpriviledge port
65535 the last

Both values should be accepted.


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

Branch: refs/heads/master
Commit: 04ec4777abab2570b8540e92613bc1c48e7f873f
Parents: 61f9072
Author: benwa <btellier@linagora.com>
Authored: Mon Apr 2 17:42:50 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Wed Apr 4 09:56:21 2018 +0700

----------------------------------------------------------------------
 .../util-java8/src/test/java/org/apache/james/util/PortTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/04ec4777/server/container/util-java8/src/test/java/org/apache/james/util/PortTest.java
----------------------------------------------------------------------
diff --git a/server/container/util-java8/src/test/java/org/apache/james/util/PortTest.java
b/server/container/util-java8/src/test/java/org/apache/james/util/PortTest.java
index 2f13e60..9d04204 100644
--- a/server/container/util-java8/src/test/java/org/apache/james/util/PortTest.java
+++ b/server/container/util-java8/src/test/java/org/apache/james/util/PortTest.java
@@ -86,7 +86,7 @@ public class PortTest {
     @Test
     public void generateValidUnprivilegedPortShouldReturnAValidPort() {
         assertThat(Port.generateValidUnprivilegedPort())
-            .isStrictlyBetween(Port.PRIVILEGED_PORT_BOUND, Port.MAX_PORT_VALUE);
+            .isBetween(Port.PRIVILEGED_PORT_BOUND, Port.MAX_PORT_VALUE);
     }
 
 }
\ No newline at end of file


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