Skip to content

Commit 74dafd2

Browse files
committed
调整test
1 parent ef2d5f3 commit 74dafd2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

weixin-java-common/src/test/java/me/chanjar/weixin/common/util/DataUtilsTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
package me.chanjar.weixin.common.util;
22

3-
import org.testng.annotations.Test;
3+
import org.testng.annotations.*;
44

5-
import static org.assertj.core.api.Assertions.assertThat;
65
import static org.testng.Assert.*;
76

87
/**
@@ -18,6 +17,6 @@ public class DataUtilsTest {
1817
public void testHandleDataWithSecret() {
1918
String data = "js_code=001tZveq0SMoiq1AEXeq0ECJeq0tZveZ&secret=5681022fa1643845392367ea88888888&grant_type=authorization_code&appid=wxe156d4848d999999";
2019
final String s = DataUtils.handleDataWithSecret(data);
21-
assertThat(s).contains("&secret=******&");
20+
assertTrue(s.contains("&secret=******&"));
2221
}
2322
}

0 commit comments

Comments
 (0)