mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 18:46:10 +08:00 
			
		
		
		
	将部分仅供测试代码使用的常量挪走
This commit is contained in:
		| @ -0,0 +1,17 @@ | ||||
| package me.chanjar.weixin.cp.api; | ||||
|  | ||||
| /** | ||||
|  * <pre> | ||||
|  * 仅供测试使用的一些常量 | ||||
|  * Created by Binary Wang on 2017-3-9. | ||||
|  * </pre> | ||||
|  */ | ||||
| public class TestConstants { | ||||
|   /////////////////////// | ||||
|   // 文件类型 | ||||
|   /////////////////////// | ||||
|   public static final String FILE_JPG = "jpeg"; | ||||
|   public static final String FILE_MP3 = "mp3"; | ||||
|   public static final String FILE_AMR = "amr"; | ||||
|   public static final String FILE_MP4 = "mp4"; | ||||
| } | ||||
| @ -54,10 +54,10 @@ public class WxCpMediaAPITest { | ||||
|   @DataProvider | ||||
|   public Object[][] uploadMedia() { | ||||
|     return new Object[][]{ | ||||
|             new Object[]{WxConsts.MEDIA_IMAGE, WxConsts.FILE_JPG, "mm.jpeg"}, | ||||
|             new Object[]{WxConsts.MEDIA_VOICE, WxConsts.FILE_MP3, "mm.mp3"}, | ||||
|             new Object[]{WxConsts.MEDIA_VIDEO, WxConsts.FILE_MP4, "mm.mp4"}, | ||||
|             new Object[]{WxConsts.MEDIA_FILE, WxConsts.FILE_JPG, "mm.jpeg"} | ||||
|             new Object[]{WxConsts.MEDIA_IMAGE, TestConstants.FILE_JPG, "mm.jpeg"}, | ||||
|             new Object[]{WxConsts.MEDIA_VOICE, TestConstants.FILE_MP3, "mm.mp3"}, | ||||
|             new Object[]{WxConsts.MEDIA_VIDEO, TestConstants.FILE_MP4, "mm.mp4"}, | ||||
|             new Object[]{WxConsts.MEDIA_FILE, TestConstants.FILE_JPG, "mm.jpeg"} | ||||
|     }; | ||||
|   } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Binary Wang
					Binary Wang