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, WeixinException
- Throws:
IOException
WeixinException
-
download
public void download() throws WeixinException, IOException
- Throws:
WeixinException
IOException
-
listAll
public void listAll() throws WeixinException
- Throws:
WeixinException
-
uploadFile
public void uploadFile() throws IOException, WeixinException
- Throws:
IOException
WeixinException
-
downloadFile
public void downloadFile() throws WeixinException
- Throws:
WeixinException
-
main
public static void main(String[] args) throws FileNotFoundException, WeixinException
- Throws:
FileNotFoundException
WeixinException
-
-