de.jodamob.kotlin.testrunner.KotlinTestRunner.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-testrunner Show documentation
Show all versions of kotlin-testrunner Show documentation
Junit testrunner that removes final from classes and methods
The newest version!
package de.jodamob.kotlin.testrunner
import org.junit.runners.BlockJUnit4ClassRunner
class KotlinTestRunner(klass: Class<*>?) : BlockJUnit4ClassRunner(load(klass)) {
companion object {
private val myClassLoader = NoMoreFinalsClassLoader()
fun load(clazz: Class<*>?): Class<*>? {
val loadClass = myClassLoader.loadClass(clazz!!.name)
return loadClass
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy