This is an automated email from the ASF dual-hosted git repository.
duhengforever pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new e22d9c735 add missing assertions of some test cases (#4860)
e22d9c735 is described below
commit e22d9c7351ae838ab51fcadb7a16cc670c46ed58
Author: SparkLee <[email protected]>
AuthorDate: Mon Aug 22 14:41:53 2022 +0800
add missing assertions of some test cases (#4860)
* add missing assertions of some test cases
* add missing import
---
acl/src/test/java/org/apache/rocketmq/acl/common/AclSignerTest.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/acl/src/test/java/org/apache/rocketmq/acl/common/AclSignerTest.java
b/acl/src/test/java/org/apache/rocketmq/acl/common/AclSignerTest.java
index eec626357..4c9a73f71 100644
--- a/acl/src/test/java/org/apache/rocketmq/acl/common/AclSignerTest.java
+++ b/acl/src/test/java/org/apache/rocketmq/acl/common/AclSignerTest.java
@@ -16,6 +16,7 @@
*/
package org.apache.rocketmq.acl.common;
+import org.junit.Assert;
import org.junit.Test;
public class AclSignerTest {
@@ -27,8 +28,9 @@ public class AclSignerTest {
@Test
public void calSignatureTest(){
- AclSigner.calSignature("RocketMQ","12345678");
- AclSigner.calSignature("RocketMQ".getBytes(),"12345678");
+ String expectedSignature = "IUc8rrO/0gDch8CjObLQsW2rsiA=";
+ Assert.assertEquals(expectedSignature,
AclSigner.calSignature("RocketMQ", "12345678"));
+ Assert.assertEquals(expectedSignature,
AclSigner.calSignature("RocketMQ".getBytes(), "12345678"));
}
}