Package com.foxinmy.weixin4j.mp.test
Class MediaTest
- java.lang.Object
-
- com.foxinmy.weixin4j.mp.test.TokenTest
-
- com.foxinmy.weixin4j.mp.test.MediaTest
-
public class MediaTest extends TokenTest
媒体上传下载测试- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Field Summary
-
Fields inherited from class com.foxinmy.weixin4j.mp.test.TokenTest
tokenManager, weixinAccount
-
-
Constructor Summary
Constructors Constructor Description MediaTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcountMaterialMedia()voiddeleteMaterialMedia()voiddownload1()voiddownloadArticle()voidinit()voidlistAllMaterialMedia()voidlistMaterialMedia()voidupdateMaterialArticle()voidupload1()voidupload2()voiduploadMaterialArticle()voiduploadMaterialVideo()voiduploadVideo()
-
-
-
Method Detail
-
init
public void init()
-
upload1
public void upload1() throws IOException, WeixinException- Throws:
IOExceptionWeixinException
-
download1
public void download1() throws WeixinException, IOException- Throws:
WeixinExceptionIOException
-
upload2
public void upload2() throws IOException, WeixinException- Throws:
IOExceptionWeixinException
-
uploadMaterialVideo
public void uploadMaterialVideo() throws IOException, WeixinException- Throws:
IOExceptionWeixinException
-
uploadVideo
public void uploadVideo() throws WeixinException, FileNotFoundException- Throws:
WeixinExceptionFileNotFoundException
-
uploadMaterialArticle
public void uploadMaterialArticle() throws WeixinException- Throws:
WeixinException
-
downloadArticle
public void downloadArticle() throws WeixinException- Throws:
WeixinException
-
deleteMaterialMedia
public void deleteMaterialMedia() throws WeixinException- Throws:
WeixinException
-
updateMaterialArticle
public void updateMaterialArticle() throws WeixinException- Throws:
WeixinException
-
countMaterialMedia
public void countMaterialMedia() throws WeixinException- Throws:
WeixinException
-
listMaterialMedia
public void listMaterialMedia() throws WeixinException- Throws:
WeixinException
-
listAllMaterialMedia
public void listAllMaterialMedia() throws WeixinException- Throws:
WeixinException
-
-