We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef2d5f3 commit 74dafd2Copy full SHA for 74dafd2
weixin-java-common/src/test/java/me/chanjar/weixin/common/util/DataUtilsTest.java
@@ -1,8 +1,7 @@
1
package me.chanjar.weixin.common.util;
2
3
-import org.testng.annotations.Test;
+import org.testng.annotations.*;
4
5
-import static org.assertj.core.api.Assertions.assertThat;
6
import static org.testng.Assert.*;
7
8
/**
@@ -18,6 +17,6 @@ public class DataUtilsTest {
18
17
public void testHandleDataWithSecret() {
19
String data = "js_code=001tZveq0SMoiq1AEXeq0ECJeq0tZveZ&secret=5681022fa1643845392367ea88888888&grant_type=authorization_code&appid=wxe156d4848d999999";
20
final String s = DataUtils.handleDataWithSecret(data);
21
- assertThat(s).contains("&secret=******&");
+ assertTrue(s.contains("&secret=******&"));
22
}
23
0 commit comments