mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-06-28 13:16:19 +08:00
调整test
This commit is contained in:
parent
ef2d5f30fd
commit
74dafd2901
@ -1,8 +1,7 @@
|
|||||||
package me.chanjar.weixin.common.util;
|
package me.chanjar.weixin.common.util;
|
||||||
|
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.*;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
|
||||||
import static org.testng.Assert.*;
|
import static org.testng.Assert.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,6 +17,6 @@ public class DataUtilsTest {
|
|||||||
public void testHandleDataWithSecret() {
|
public void testHandleDataWithSecret() {
|
||||||
String data = "js_code=001tZveq0SMoiq1AEXeq0ECJeq0tZveZ&secret=5681022fa1643845392367ea88888888&grant_type=authorization_code&appid=wxe156d4848d999999";
|
String data = "js_code=001tZveq0SMoiq1AEXeq0ECJeq0tZveZ&secret=5681022fa1643845392367ea88888888&grant_type=authorization_code&appid=wxe156d4848d999999";
|
||||||
final String s = DataUtils.handleDataWithSecret(data);
|
final String s = DataUtils.handleDataWithSecret(data);
|
||||||
assertThat(s).contains("&secret=******&");
|
assertTrue(s.contains("&secret=******&"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user