dev --- 3.8.0.A版本, openProject引用 ; formao-live --- 3.7.0.B 版本, formallProject引用
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

29 行
616 B

  1. package chanjarster.weixin.api;
  2. import org.testng.Assert;
  3. import org.testng.annotations.Guice;
  4. import org.testng.annotations.Test;
  5. import chanjarster.weixin.exception.WxErrorException;
  6. import com.google.inject.Inject;
  7. /**
  8. * 测试短连接
  9. *
  10. * @author chanjarster
  11. */
  12. @Test(groups = "shortURLAPI", dependsOnGroups = { "baseAPI" })
  13. @Guice(modules = ApiTestModule.class)
  14. public class WxShortUrlAPITest {
  15. @Inject
  16. protected WxServiceImpl wxService;
  17. public void testShortUrl() throws WxErrorException {
  18. String shortUrl = wxService.shortUrl("www.baidu.com");
  19. Assert.assertNotNull(shortUrl);
  20. }
  21. }