|
|
|
@ -242,4 +242,14 @@ public class RemoteWorkspaceURLTest {
|
|
|
|
|
assertEquals("servlet", b.getServlet()); |
|
|
|
|
//others begin
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void testIPV6Url() { |
|
|
|
|
String trueUrl = "http://[fe80::4d83:cc10:9f6f:3303]:8080/webroot/decision"; |
|
|
|
|
RemoteWorkspaceURL remoteWorkspaceURL1 = new RemoteWorkspaceURL(trueUrl); |
|
|
|
|
assertEquals("[fe80::4d83:cc10:9f6f:3303]", remoteWorkspaceURL1.getHost()); |
|
|
|
|
assertEquals("8080", remoteWorkspaceURL1.getPort()); |
|
|
|
|
assertEquals("webroot", remoteWorkspaceURL1.getWeb()); |
|
|
|
|
assertEquals("decision", remoteWorkspaceURL1.getServlet()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|