Adrian M
04/11/2018, 12:55 PM@BeforeAll
annotated method from super class be executed before tests from child class?
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
open class TestBase {
var status: Boolean = false
@BeforeAll
open fun setStatus() {
status = true
}
}
class MyAppTest : TestBase() {
@test
fun testStatus() {
assertTrue(status) //fails
}
}
Adrian M
04/11/2018, 12:56 PMspand
04/11/2018, 12:57 PMAdrian M
04/11/2018, 1:04 PM