|
1 | 1 | package cn.binarywang.wx.miniapp.api.impl; |
2 | 2 |
|
3 | | -import java.util.Arrays; |
4 | | -import java.util.HashMap; |
5 | | -import java.util.List; |
6 | | -import java.util.Map; |
7 | | - |
8 | | -import org.testng.annotations.*; |
9 | | - |
10 | 3 | import cn.binarywang.wx.miniapp.api.WxMaCodeService; |
11 | 4 | import cn.binarywang.wx.miniapp.api.WxMaService; |
12 | | -import cn.binarywang.wx.miniapp.bean.code.WxMaCategory; |
13 | | -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeAuditStatus; |
14 | | -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeCommitRequest; |
15 | | -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeExtConfig; |
16 | | -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeSubmitAuditRequest; |
17 | | -import cn.binarywang.wx.miniapp.bean.code.WxMaCodeVersionDistribution; |
| 5 | +import cn.binarywang.wx.miniapp.bean.code.*; |
18 | 6 | import cn.binarywang.wx.miniapp.config.WxMaConfig; |
19 | 7 | import cn.binarywang.wx.miniapp.test.ApiTestModule; |
20 | 8 | import com.google.inject.Inject; |
| 9 | +import org.testng.annotations.Guice; |
| 10 | +import org.testng.annotations.Test; |
| 11 | + |
| 12 | +import java.util.Arrays; |
| 13 | +import java.util.HashMap; |
| 14 | +import java.util.List; |
| 15 | +import java.util.Map; |
21 | 16 |
|
22 | | -import static org.testng.Assert.*; |
| 17 | +import static org.testng.Assert.assertNotNull; |
| 18 | +import static org.testng.Assert.assertTrue; |
23 | 19 |
|
24 | 20 | /** |
25 | 21 | * @author <a href="https://github.com/charmingoh">Charming</a> |
@@ -143,6 +139,12 @@ public void testGetSupportVersion() throws Exception { |
143 | 139 | System.out.println(distribution); |
144 | 140 | } |
145 | 141 |
|
| 142 | + @Test |
| 143 | + public void testGetVersionInfo() throws Exception { |
| 144 | + WxMaCodeVersionInfo versionInfo = wxService.getCodeService().getVersionInfo(); |
| 145 | + System.out.println(versionInfo); |
| 146 | + } |
| 147 | + |
146 | 148 | @Test |
147 | 149 | public void testSetSupportVersion() throws Exception { |
148 | 150 | wxService.getCodeService().setSupportVersion("1.2.0"); |
|
0 commit comments