mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 02:28:25 +08:00 
			
		
		
		
	调整test
This commit is contained in:
		| @ -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=******&")); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang