This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 52abcc79c Update HttpTinyClientTest.java
new 2dd773a93 Merge pull request #3628 from harshithasudhakar/patch-2
52abcc79c is described below
commit 52abcc79cd10ccc6c1863de15e961581828a90aa
Author: Harshitha Sudhakar
<[email protected]>
AuthorDate: Wed Apr 5 00:51:03 2023 +0530
Update HttpTinyClientTest.java
Swapped actual and expected values in lines 47,48,63,64,75,76.
---
.../apache/eventmesh/runtime/util/HttpTinyClientTest.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git
a/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/util/HttpTinyClientTest.java
b/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/util/HttpTinyClientTest.java
index 09e66657d..8a6334484 100644
---
a/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/util/HttpTinyClientTest.java
+++
b/eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/util/HttpTinyClientTest.java
@@ -44,8 +44,8 @@ public class HttpTinyClientTest {
dummyStatic.when(() -> IOUtils.toString(any(InputStream.class),
any(String.class))).thenReturn(content);
String requestUrl = "https://eventmesh.apache.org";
HttpResult result = HttpTinyClient.httpGet(requestUrl, null, null,
"utf-8", 0);
- Assert.assertEquals(result.getContent(), content);
- Assert.assertEquals(result.getCode(), HttpURLConnection.HTTP_OK);
+ Assert.assertEquals(content, result.getContent());
+ Assert.assertEquals(HttpURLConnection.HTTP_OK, result.getCode());
}
List<String> paramValues = new ArrayList<>();
@@ -60,8 +60,8 @@ public class HttpTinyClientTest {
dummyStatic.when(() -> IOUtils.toString(any(InputStream.class),
any(String.class))).thenReturn(content);
String requestUrl = "https://eventmesh.apache.org";
HttpResult result = HttpTinyClient.httpGet(requestUrl, headers,
paramValues, "utf-8", 0);
- Assert.assertEquals(result.getContent(), content);
- Assert.assertEquals(result.getCode(), HttpURLConnection.HTTP_OK);
+ Assert.assertEquals(content, result.getContent());
+ Assert.assertEquals(HttpURLConnection.HTTP_OK, result.getCode());
}
}
@@ -72,8 +72,8 @@ public class HttpTinyClientTest {
dummyStatic.when(() -> IOUtils.toString(any(InputStream.class),
any(String.class))).thenReturn(content);
String requestUrl = "https://eventmesh.apache.org";
HttpResult result = HttpTinyClient.httpPost(requestUrl, anyList(),
anyList(), "utf-8", 0);
- Assert.assertEquals(result.getContent(), content);
- Assert.assertEquals(result.getCode(), HttpURLConnection.HTTP_OK);
+ Assert.assertEquals(content, result.getContent());
+ Assert.assertEquals(HttpURLConnection.HTTP_OK, result.getCode());
}
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]