Skip to content

Commit def9c8f

Browse files
committed
Update path to test server.
1 parent 6e47f8c commit def9c8f

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

httprpc-server-test/.classpath

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3+
<classpathentry kind="output" path="bin/default"/>
34
<classpathentry output="bin/main" kind="src" path="src/main/java">
45
<attributes>
56
<attribute name="gradle_scope" value="main"/>
@@ -12,9 +13,8 @@
1213
<attribute name="gradle_used_by_scope" value="main,test"/>
1314
</attributes>
1415
</classpathentry>
15-
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
16-
<classpathentry kind="output" path="bin/default"/>
1716
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
17+
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
1818
<classpathentry kind="src" path="/httprpc-server">
1919
<attributes>
2020
<attribute name="org.eclipse.jst.component.nondependency" value=""/>

httprpc-server-test/.settings/org.eclipse.jdt.core.prefs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
#Tue Jul 24 15:23:37 EDT 2018
2+
#Tue Jul 24 19:16:14 EDT 2018
33
org.eclipse.jdt.core.compiler.debug.localVariable=generate
44
org.eclipse.jdt.core.compiler.compliance=1.8
55
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve

httprpc-server/.settings/org.eclipse.jdt.core.prefs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
#Tue Jul 24 14:50:18 EDT 2018
2+
#Tue Jul 24 19:16:14 EDT 2018
33
org.eclipse.jdt.core.compiler.debug.localVariable=generate
44
org.eclipse.jdt.core.compiler.compliance=1.8
55
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve

httprpc-server/src/test/java/org/httprpc/WebServiceProxyTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)