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, WeixinException
- Throws:
IOException
WeixinException
-
download1
public void download1() throws WeixinException, IOException
- Throws:
WeixinException
IOException
-
upload2
public void upload2() throws IOException, WeixinException
- Throws:
IOException
WeixinException
-
uploadMaterialVideo
public void uploadMaterialVideo() throws IOException, WeixinException
- Throws:
IOException
WeixinException
-
uploadVideo
public void uploadVideo() throws WeixinException, FileNotFoundException
- Throws:
WeixinException
FileNotFoundException
-
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
-
-