16 行
467 B
Kotlin
16 行
467 B
Kotlin
|
|
package com.xuqm.sdk.im
|
||
|
|
|
||
|
|
import org.junit.Assert.assertFalse
|
||
|
|
import org.junit.Test
|
||
|
|
|
||
|
|
class PublicLifecycleApiTest {
|
||
|
|
@Test
|
||
|
|
fun `login lifecycle hooks are not public API`() {
|
||
|
|
val methods = ImSDK::class.java.methods.filterNot { it.isSynthetic }.map { it.name }.toSet()
|
||
|
|
assertFalse("login" in methods)
|
||
|
|
assertFalse("refreshToken" in methods)
|
||
|
|
assertFalse("onSdkLogin" in methods)
|
||
|
|
assertFalse("onSdkLogout" in methods)
|
||
|
|
}
|
||
|
|
}
|