1
0
mirror of synced 2025-12-22 00:48:00 +08:00

issue #6 长链接转短链接接口

This commit is contained in:
Daniel Qian
2014-08-26 15:08:49 +08:00
parent 7f3e58817f
commit db9de2a8c4
4 changed files with 54 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
package chanjarster.weixin.api;
import org.testng.Assert;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import chanjarster.weixin.exception.WxErrorException;
import com.google.inject.Inject;
/**
* 测试用户相关的接口
*
* @author chanjarster
*/
@Test(groups = "shortURLAPI", dependsOnGroups = { "baseAPI" })
@Guice(modules = ApiTestModule.class)
public class WxShortUrlAPITest {
@Inject
protected WxServiceImpl wxService;
public void testShortUrl() throws WxErrorException {
String shortUrl = wxService.shortUrl("www.baidu.com");
Assert.assertNotNull(shortUrl);
}
}