1
0
mirror of synced 2026-02-14 08:24:25 +08:00

🎨 #1886 【小程序】创建直播间接口增加二维码地址字段

This commit is contained in:
Binary Wang
2020-11-29 23:39:17 +08:00
parent 0e2186632a
commit b0440e0faa
4 changed files with 68 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
package cn.binarywang.wx.miniapp.api.impl;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.live.WxMaCreateRoomResult;
import cn.binarywang.wx.miniapp.bean.live.WxMaLiveResult;
import cn.binarywang.wx.miniapp.bean.live.WxMaLiveRoomInfo;
import cn.binarywang.wx.miniapp.test.ApiTestModule;
@@ -14,6 +15,7 @@ import java.util.Arrays;
import java.util.Calendar;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
import static org.testng.Assert.assertNotNull;
/**
@@ -50,8 +52,9 @@ public class WxMaLiveServiceImplTest {
roomInfo.setCloseLike(0);
roomInfo.setCloseGoods(0);
roomInfo.setCloseComment(0);
Integer roomId = this.wxService.getLiveService().createRoom(roomInfo);
System.out.println(roomId);
WxMaCreateRoomResult result = this.wxService.getLiveService().createRoom(roomInfo);
assertNotNull(result);
assertThat(result.getRoomId()).isNotNull();
}
@Test