rook
06/01/2018, 3:13 PMbeforeGroup
and afterGroup
called? In previously working tests, I’m suddenly getting an error in my afterGroup
block that seems to indicate it’s being run before my beforeGroup
has been run
beforeGroup {
presenter.takeView(view) //this opens a dao connection
}
afterGroup {
presenter.dropView(view) //this closes the dao connection
}
//error generated: kotlin.UninitializedPropertyAccessException: lateinit property dao has not been initialized
raniejade
06/02/2018, 8:22 AMCachingMode
for presenter
? If it's the default (CachingMode.TEST
), then you should use beforeEachTest /afterEachTest.rook
06/04/2018, 3:06 PM