Package com.foxinmy.weixin4j.qy.test
Class MediaTest
- java.lang.Object
-
- com.foxinmy.weixin4j.qy.test.TokenTest
-
- com.foxinmy.weixin4j.qy.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.qy.test.TokenTest
tokenManager, weixinAccount
-
-
Constructor Summary
Constructors Constructor Description MediaTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
download()
void
downloadFile()
void
init()
void
listAll()
static void
main(String[] args)
void
upload()
void
uploadFile()
-
-
-
Method Detail
-
init
public void init()
-
upload
public void upload() throws IOException, com.foxinmy.weixin4j.exception.WeixinException
- Throws:
IOException
com.foxinmy.weixin4j.exception.WeixinException
-
download
public void download() throws com.foxinmy.weixin4j.exception.WeixinException, IOException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
IOException
-
listAll
public void listAll() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
uploadFile
public void uploadFile() throws IOException, com.foxinmy.weixin4j.exception.WeixinException
- Throws:
IOException
com.foxinmy.weixin4j.exception.WeixinException
-
downloadFile
public void downloadFile() throws com.foxinmy.weixin4j.exception.WeixinException
- Throws:
com.foxinmy.weixin4j.exception.WeixinException
-
main
public static void main(String[] args) throws FileNotFoundException, com.foxinmy.weixin4j.exception.WeixinException
- Throws:
FileNotFoundException
com.foxinmy.weixin4j.exception.WeixinException
-
-