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
Copy code
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
r
raniejade
06/02/2018, 8:22 AM
what's the
CachingMode
for
presenter
? If it's the default (
CachingMode.TEST
), then you should use beforeEachTest /afterEachTest.
r
rook
06/04/2018, 3:06 PM
@raniejade unfortunately that didn’t fix the problem