You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
poker-analytics/app/src/test/java/net/pokeranalytics/android/InstantiationTest.kt

27 lines
484 B

package net.pokeranalytics.android
import org.junit.Assert
import org.junit.Test
class IntHolder(var value: Int)
class StringHolder(var value: String)
class InstantiationTest : RealmUnitTest() {
@Test
fun testIntInstance() {
Assert.assertEquals(0, 0)
val c = IntHolder::class.java
val constructor = c.declaredConstructors.first()
val type = constructor.parameterTypes.first()
when (type) {
Int::class.java -> {
// good
}
else -> Assert.fail()
}
}
}