19 行
548 B
Kotlin
19 行
548 B
Kotlin
package com.xuqm.sdk.bugcollect
|
|
|
|
import org.junit.Assert.assertFalse
|
|
import org.junit.Test
|
|
|
|
class PublicBridgeApiTest {
|
|
@Test
|
|
fun `internal lifecycle bridge is not public API`() {
|
|
val methods = BugCollect::class.java.methods
|
|
.filterNot { it.isSynthetic }
|
|
.map { it.name }
|
|
.toSet()
|
|
assertFalse("onSdkConfigurationChanged" in methods)
|
|
assertFalse("onSdkLogin" in methods)
|
|
assertFalse("onSdkLogout" in methods)
|
|
assertFalse("sendDeveloperTestOnce" in methods)
|
|
}
|
|
}
|