@@ -76,7 +76,7 @@ public static void main(String[] args) throws Exception {
7676 }
7777
7878 public static void testGet () throws Exception {
79- WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server/test" ));
79+ WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server-test /test" ));
8080
8181 webServiceProxy .getArguments ().putAll (mapOf (
8282 entry ("string" , "héllo+gøodbye" ),
@@ -102,7 +102,7 @@ public static void testGet() throws Exception {
102102 }
103103
104104 public static void testURLEncodedPost () throws Exception {
105- WebServiceProxy webServiceProxy = new WebServiceProxy ("POST" , new URL ("http://localhost:8080/httprpc-server/test" ));
105+ WebServiceProxy webServiceProxy = new WebServiceProxy ("POST" , new URL ("http://localhost:8080/httprpc-server-test /test" ));
106106
107107 webServiceProxy .getArguments ().putAll (mapOf (
108108 entry ("string" , "héllo+gøodbye" ),
@@ -129,7 +129,7 @@ public static void testURLEncodedPost() throws Exception {
129129 }
130130
131131 public static void testMultipartPost () throws Exception {
132- WebServiceProxy webServiceProxy = new WebServiceProxy ("POST" , new URL ("http://localhost:8080/httprpc-server/test" ));
132+ WebServiceProxy webServiceProxy = new WebServiceProxy ("POST" , new URL ("http://localhost:8080/httprpc-server-test /test" ));
133133
134134 webServiceProxy .setEncoding (WebServiceProxy .Encoding .MULTIPART_FORM_DATA );
135135
@@ -165,7 +165,7 @@ public static void testMultipartPost() throws Exception {
165165 }
166166
167167 public static void testCustomPost () throws Exception {
168- WebServiceProxy webServiceProxy = new WebServiceProxy ("POST" , new URL ("http://localhost:8080/httprpc-server/test" ));
168+ WebServiceProxy webServiceProxy = new WebServiceProxy ("POST" , new URL ("http://localhost:8080/httprpc-server-test /test" ));
169169
170170 URL imageTestURL = WebServiceProxyTest .class .getResource ("test.jpg" );
171171
@@ -190,7 +190,7 @@ public static void testCustomPost() throws Exception {
190190 }
191191
192192 public static void testPut () throws Exception {
193- WebServiceProxy webServiceProxy = new WebServiceProxy ("PUT" , new URL ("http://localhost:8080/httprpc-server/test" ));
193+ WebServiceProxy webServiceProxy = new WebServiceProxy ("PUT" , new URL ("http://localhost:8080/httprpc-server-test /test" ));
194194
195195 URL textTestURL = WebServiceProxyTest .class .getResource ("test.txt" );
196196
@@ -224,7 +224,7 @@ public static void testPut() throws Exception {
224224 }
225225
226226 public static void testDelete () throws Exception {
227- WebServiceProxy webServiceProxy = new WebServiceProxy ("DELETE" , new URL ("http://localhost:8080/httprpc-server/test" ));
227+ WebServiceProxy webServiceProxy = new WebServiceProxy ("DELETE" , new URL ("http://localhost:8080/httprpc-server-test /test" ));
228228
229229 webServiceProxy .getArguments ().putAll (mapOf (
230230 entry ("id" , 101 )
@@ -251,7 +251,7 @@ public static void testError() throws Exception {
251251 }
252252
253253 public static void testTimeout () throws Exception {
254- WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server/test" ));
254+ WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server-test /test" ));
255255
256256 webServiceProxy .setConnectTimeout (3000 );
257257 webServiceProxy .setReadTimeout (3000 );
@@ -274,7 +274,7 @@ public static void testTimeout() throws Exception {
274274 }
275275
276276 public static void testMath () throws Exception {
277- WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server/math/sum" ));
277+ WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server-test /math/sum" ));
278278
279279 webServiceProxy .getArguments ().put ("a" , 4 );
280280 webServiceProxy .getArguments ().put ("b" , 2 );
@@ -285,7 +285,7 @@ public static void testMath() throws Exception {
285285 }
286286
287287 public static void testTree () throws Exception {
288- WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server/tree" ));
288+ WebServiceProxy webServiceProxy = new WebServiceProxy ("GET" , new URL ("http://localhost:8080/httprpc-server-test /tree" ));
289289
290290 TreeNode root = BeanAdapter .adapt (webServiceProxy .invoke (), TreeNode .class );
291291
0 commit comments