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 void
countMaterialMedia()
void
deleteMaterialMedia()
void
download1()
void
downloadArticle()
void
init()
void
listAllMaterialMedia()
void
listMaterialMedia()
void
updateMaterialArticle()
void
upload1()
void
upload2()
void
uploadMaterialArticle()
void
uploadMaterialVideo()
void
uploadVideo()
-
-
-
Method Detail
-
init
public void init()
-
upload1
public void upload1() throws IOException, com.foxinmy.weixin4j.exception.WeixinException
- Throws:
IOException
com.foxinmy.weixin4j.exception.WeixinException
-
download1
public void download1() throws com.foxinmy.weixin4j.exception.WeixinException, IOException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
IOException
-
upload2
public void upload2() throws IOException, com.foxinmy.weixin4j.exception.WeixinException
- Throws:
IOException
com.foxinmy.weixin4j.exception.WeixinException
-
uploadMaterialVideo
public void uploadMaterialVideo() throws IOException, com.foxinmy.weixin4j.exception.WeixinException
- Throws:
IOException
com.foxinmy.weixin4j.exception.WeixinException
-
uploadVideo
public void uploadVideo() throws com.foxinmy.weixin4j.exception.WeixinException, FileNotFoundException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
FileNotFoundException
-
uploadMaterialArticle
public void uploadMaterialArticle() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
downloadArticle
public void downloadArticle() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
deleteMaterialMedia
public void deleteMaterialMedia() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
updateMaterialArticle
public void updateMaterialArticle() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
countMaterialMedia
public void countMaterialMedia() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
listMaterialMedia
public void listMaterialMedia() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
listAllMaterialMedia
public void listAllMaterialMedia() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
-