Commit 4c792247 by zhangying

review

parent 120386d4
...@@ -25,14 +25,14 @@ public class TestAuthenticateMqtt extends XMBaseTest { ...@@ -25,14 +25,14 @@ public class TestAuthenticateMqtt extends XMBaseTest {
} }
/** /**
* 测试直播客户端查看回放 * 测试直播客户端mqtt授权
*/ */
@Test @Test
public void testAuthenticateMqtt() { public void testAuthenticateMqtt() {
GetLiveCourseData getLiveCourseData=new GetLiveCourseData(); GetLiveCourseData getLiveCourseData=new GetLiveCourseData();
JSONObject largeClassCourse=getLiveCourseData.createLargeClassLive(); JSONObject largeClassCourse = getLiveCourseData.getLargeClassLiveList();
String liveCourseId=largeClassCourse.getString("result"); String liveCourseId=largeClassCourse.getJSONObject("result").getJSONArray("records").getJSONObject(0).getString("liveCourseId");
System.out.println("liveCourseId ="+liveCourseId); System.out.println("liveCourseId ="+liveCourseId);
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
......
...@@ -29,12 +29,12 @@ public class TestChangeCourseState extends XMBaseTest { ...@@ -29,12 +29,12 @@ public class TestChangeCourseState extends XMBaseTest {
/** /**
* 测试改变直播课次状态 * 测试改变直播课次状态
*/ */
// @Test @Test
public void testChangeCourseState() { public void testChangeCourseState() {
GetLiveCourseData getLiveCourseData=new GetLiveCourseData(); GetLiveCourseData getLiveCourseData=new GetLiveCourseData();
JSONObject largeClassCourse=getLiveCourseData.createLargeClassLive(); JSONObject largeCourse=getLiveCourseData.createLargeClassLive();
String liveCourseId=largeClassCourse.getString("result"); String liveCourseId=largeCourse.getString("result");
System.out.println("liveCourseId ="+liveCourseId); System.out.println("liveCourseId ="+liveCourseId);
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment