mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 02:28:25 +08:00 
			
		
		
		
	fix some warnings
This commit is contained in:
		| @ -1,17 +1,18 @@ | |||||||
| package me.chanjar.weixin.mp.api; | package me.chanjar.weixin.mp.api; | ||||||
|  |  | ||||||
| import me.chanjar.weixin.common.bean.result.WxError; |  | ||||||
| import me.chanjar.weixin.common.exception.WxErrorException; |  | ||||||
| import me.chanjar.weixin.common.util.http.RequestExecutor; |  | ||||||
| import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; |  | ||||||
| import org.testng.annotations.DataProvider; |  | ||||||
| import org.testng.annotations.Test; |  | ||||||
|  |  | ||||||
| import java.util.concurrent.ExecutionException; | import java.util.concurrent.ExecutionException; | ||||||
| import java.util.concurrent.ExecutorService; | import java.util.concurrent.ExecutorService; | ||||||
| import java.util.concurrent.Executors; | import java.util.concurrent.Executors; | ||||||
| import java.util.concurrent.Future; | import java.util.concurrent.Future; | ||||||
|  |  | ||||||
|  | import org.testng.annotations.DataProvider; | ||||||
|  | import org.testng.annotations.Test; | ||||||
|  |  | ||||||
|  | import me.chanjar.weixin.common.bean.result.WxError; | ||||||
|  | import me.chanjar.weixin.common.exception.WxErrorException; | ||||||
|  | import me.chanjar.weixin.common.util.http.RequestExecutor; | ||||||
|  | import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; | ||||||
|  |  | ||||||
| @Test | @Test | ||||||
| public class WxMpBusyRetryTest { | public class WxMpBusyRetryTest { | ||||||
|  |  | ||||||
| @ -20,7 +21,9 @@ public class WxMpBusyRetryTest { | |||||||
|     WxMpService service = new WxMpServiceImpl() { |     WxMpService service = new WxMpServiceImpl() { | ||||||
|  |  | ||||||
|       @Override |       @Override | ||||||
|       protected <T, E> T executeInternal(RequestExecutor<T, E> executor, String uri, E data) throws WxErrorException { |       protected synchronized <T, E> T executeInternal( | ||||||
|  |           RequestExecutor<T, E> executor, String uri, E data) | ||||||
|  |           throws WxErrorException { | ||||||
|         WxError error = new WxError(); |         WxError error = new WxError(); | ||||||
|         error.setErrorCode(-1); |         error.setErrorCode(-1); | ||||||
|         throw new WxErrorException(error); |         throw new WxErrorException(error); | ||||||
|  | |||||||
| @ -1,14 +1,14 @@ | |||||||
| package me.chanjar.weixin.mp.api; | package me.chanjar.weixin.mp.api; | ||||||
|  |  | ||||||
| import com.google.inject.Inject; |  | ||||||
| import me.chanjar.weixin.common.exception.WxErrorException; |  | ||||||
| import me.chanjar.weixin.common.util.crypto.SHA1; |  | ||||||
| import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; |  | ||||||
| import org.testng.Assert; | import org.testng.Assert; | ||||||
| import org.testng.annotations.Guice; | import org.testng.annotations.Guice; | ||||||
| import org.testng.annotations.Test; | import org.testng.annotations.Test; | ||||||
|  |  | ||||||
| import java.security.NoSuchAlgorithmException; | import com.google.inject.Inject; | ||||||
|  |  | ||||||
|  | import me.chanjar.weixin.common.exception.WxErrorException; | ||||||
|  | import me.chanjar.weixin.common.util.crypto.SHA1; | ||||||
|  | import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * 测试jsapi ticket接口 |  * 测试jsapi ticket接口 | ||||||
| @ -29,7 +29,7 @@ public class WxMpJsAPITest { | |||||||
|     Assert.assertNotNull(jsapiTicket); |     Assert.assertNotNull(jsapiTicket); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   public void test() throws NoSuchAlgorithmException { |   public void test() { | ||||||
|     long timestamp = 1419835025l; |     long timestamp = 1419835025l; | ||||||
|     String url = "http://omstest.vmall.com:23568/thirdparty/wechat/vcode/gotoshare?quantity=1&batchName=MATE7"; |     String url = "http://omstest.vmall.com:23568/thirdparty/wechat/vcode/gotoshare?quantity=1&batchName=MATE7"; | ||||||
|     String noncestr = "82693e11-b9bc-448e-892f-f5289f46cd0f"; |     String noncestr = "82693e11-b9bc-448e-892f-f5289f46cd0f"; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 BinaryWang
					BinaryWang