Skip to content

Commit 8d3c18e

Browse files
committed
Update tests.
1 parent b28da7c commit 8d3c18e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void testGet() throws IOException {
115115
WebServiceProxy webServiceProxy = new WebServiceProxy("GET", new URL(serverURL, "test"));
116116

117117
webServiceProxy.setArguments(mapOf(
118-
entry("string", "héllo+gøodbye"),
118+
entry("string", "héllo&gøod+bye?"),
119119
entry("strings", listOf("a", "b", "c")),
120120
entry("number", 123),
121121
entry("flag", true),
@@ -128,7 +128,7 @@ public void testGet() throws IOException {
128128
Map<String, ?> result = webServiceProxy.invoke();
129129

130130
assertEquals(mapOf(
131-
entry("string", "héllo+gøodbye"),
131+
entry("string", "héllo&gøod+bye?"),
132132
entry("strings", listOf("a", "b", "c")),
133133
entry("number", 123L),
134134
entry("flag", true),
@@ -153,7 +153,7 @@ public void testURLEncodedPost() throws IOException {
153153
WebServiceProxy webServiceProxy = new WebServiceProxy("POST", new URL(serverURL, "test"));
154154

155155
webServiceProxy.setArguments(mapOf(
156-
entry("string", "héllo+gøodbye"),
156+
entry("string", "héllo&gøod+bye?"),
157157
entry("strings", listOf("a", "b", "c")),
158158
entry("number", 123),
159159
entry("flag", true),
@@ -166,7 +166,7 @@ public void testURLEncodedPost() throws IOException {
166166
Map<String, ?> result = webServiceProxy.invoke();
167167

168168
assertEquals(mapOf(
169-
entry("string", "héllo+gøodbye"),
169+
entry("string", "héllo&gøod+bye?"),
170170
entry("strings", listOf("a", "b", "c")),
171171
entry("number", 123L),
172172
entry("flag", true),
@@ -185,13 +185,13 @@ public void testMultipartPost() throws IOException {
185185

186186
TestService testService = WebServiceProxy.adapt(new URL(serverURL, "test/"), TestService.class);
187187

188-
TestService.Response response = testService.testMultipartPost("héllo+gøodbye", listOf("a", "b", "c"), 123, true,
188+
TestService.Response response = testService.testMultipartPost("héllo&gøod+bye?", listOf("a", "b", "c"), 123, true,
189189
date, localDate, localTime, localDateTime,
190190
listOf(textTestURL, imageTestURL));
191191

192192
assertNotNull(response);
193193

194-
assertTrue(response.getString().equals("héllo+gøodbye")
194+
assertTrue(response.getString().equals("héllo&gøod+bye?")
195195
&& response.getStrings().equals(listOf("a", "b", "c"))
196196
&& response.getNumber() == 123
197197
&& response.getFlag()

0 commit comments

Comments
 (0)