Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
davidliu
2022-01-26 23:18:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6dc34e48335e7aaff3123b874fc829d97ead554c
6dc34e48
1 parent
81d72645
more room cleanup test
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
livekit-android-sdk/src/test/java/io/livekit/android/room/RoomTest.kt
livekit-android-sdk/src/test/java/io/livekit/android/room/RoomTest.kt
查看文件 @
6dc34e4
...
...
@@ -22,6 +22,7 @@ import org.mockito.junit.MockitoJUnit
import org.mockito.kotlin.*
import org.robolectric.RobolectricTestRunner
import org.webrtc.EglBase
import java.lang.Exception
@ExperimentalCoroutinesApi
@RunWith(RobolectricTestRunner::class)
...
...
@@ -135,5 +136,14 @@ class RoomTest {
Assert.assertEquals(true, events[1] is RoomEvent.TrackUnpublished)
Assert.assertEquals(true, events[2] is RoomEvent.ParticipantDisconnected)
Assert.assertEquals(true, events[3] is RoomEvent.Disconnected)
var localParticipantEmpty = false
try{
room.localParticipant // should throw
} catch (e: Exception) {
localParticipantEmpty = true
}
Assert.assertTrue(localParticipantEmpty)
Assert.assertTrue(room.remoteParticipants.isEmpty())
}
}
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论