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 20485d8a2 [ISSUE #3719]Swap these 2 arguments so they are in the
correct order: expected value, actual value.[NetUtilsTest]
20485d8a2 is described below
commit 20485d8a26dcc066daa7c4d79937eb5afd19ed54
Author: Harshitha Sudhakar
<[email protected]>
AuthorDate: Wed Apr 19 08:29:54 2023 +0530
[ISSUE #3719]Swap these 2 arguments so they are in the correct order:
expected value, actual value.[NetUtilsTest]
Swapped expected and actual values.
---
.../test/java/org/apache/eventmesh/common/utils/NetUtilsTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/eventmesh-common/src/test/java/org/apache/eventmesh/common/utils/NetUtilsTest.java
b/eventmesh-common/src/test/java/org/apache/eventmesh/common/utils/NetUtilsTest.java
index a1131fde9..ca62207a5 100644
---
a/eventmesh-common/src/test/java/org/apache/eventmesh/common/utils/NetUtilsTest.java
+++
b/eventmesh-common/src/test/java/org/apache/eventmesh/common/utils/NetUtilsTest.java
@@ -42,19 +42,19 @@ public class NetUtilsTest {
formData = "item_id=10081&item_name=test item name";
result = NetUtils.formData2Dic(formData);
- Assert.assertEquals(result.get("item_id"), "10081");
+ Assert.assertEquals("10081", result.get("item_id"));
}
@Test
public void testAddressToString() {
List<InetSocketAddress> clients = new ArrayList<>();
String result = NetUtils.addressToString(clients);
- Assert.assertEquals(result, "no session had been closed");
+ Assert.assertEquals("no session had been closed", result);
InetSocketAddress localAddress = new InetSocketAddress(80);
clients.add(localAddress);
result = NetUtils.addressToString(clients);
- Assert.assertEquals(result, localAddress + "|");
+ Assert.assertEquals(localAddress + "|", result);
}
@Test
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]