You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by wu...@apache.org on 2018/04/20 07:55:49 UTC

[incubator-servicecomb-java-chassis] 05/05: fix ut

This is an automated email from the ASF dual-hosted git repository.

wujimin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git

commit 96c84b6601c5b85946c62b69e11dd147a24c7fb6
Author: weichao <30...@users.noreply.github.com>
AuthorDate: Fri Apr 20 09:30:33 2018 +0800

    fix ut
---
 .../servicecomb/foundation/common/net/TestNetUtils.java    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/foundations/foundation-common/src/test/java/org/apache/servicecomb/foundation/common/net/TestNetUtils.java b/foundations/foundation-common/src/test/java/org/apache/servicecomb/foundation/common/net/TestNetUtils.java
index 654f543..85eebe2 100644
--- a/foundations/foundation-common/src/test/java/org/apache/servicecomb/foundation/common/net/TestNetUtils.java
+++ b/foundations/foundation-common/src/test/java/org/apache/servicecomb/foundation/common/net/TestNetUtils.java
@@ -46,13 +46,13 @@ public class TestNetUtils {
     Assert.assertEquals(8080, NetUtils.parseIpPort("127.0.0.1:8080").getPort());
     Assert.assertEquals(null, NetUtils.parseIpPort(null));
     Assert.assertEquals(null, NetUtils.parseIpPort("127.0.0.18080"));
-    Assert.assertEquals(NetUtils.parseIpPortFromURI(null), null);
-    Assert.assertEquals(NetUtils.parseIpPortFromURI("ss"), null);
-    Assert.assertEquals(NetUtils.parseIpPortFromURI("rest://127.0.0.1:8080").getHostOrIp(), "127.0.0.1");
-    Assert.assertEquals(NetUtils.parseIpPortFromURI("http://127.0.0.1:8080").getPort(), 8080);
-    Assert.assertEquals(NetUtils.parseIpPortFromURI("http://127.0.0.1").getPort(), 80);
-    Assert.assertEquals(NetUtils.parseIpPortFromURI("https://127.0.0.1:8080").getPort(), 8080);
-    Assert.assertEquals(NetUtils.parseIpPortFromURI("https://127.0.0.1").getPort(), 443);
+    Assert.assertEquals(null, NetUtils.parseIpPortFromURI(null));
+    Assert.assertEquals(null, NetUtils.parseIpPortFromURI("ss"));
+    Assert.assertEquals("127.0.0.1", NetUtils.parseIpPortFromURI("rest://127.0.0.1:8080").getHostOrIp());
+    Assert.assertEquals(8080, NetUtils.parseIpPortFromURI("http://127.0.0.1:8080").getPort());
+    Assert.assertEquals(80, NetUtils.parseIpPortFromURI("http://127.0.0.1").getPort());
+    Assert.assertEquals(8080, NetUtils.parseIpPortFromURI("https://127.0.0.1:8080").getPort());
+    Assert.assertEquals(443, NetUtils.parseIpPortFromURI("https://127.0.0.1").getPort());
   }
 
   @Test

-- 
To stop receiving notification emails like this one, please contact
wujimin@apache.org.