https://kotlinlang.org logo
#android
Title
# android
m

michaelsims

04/06/2017, 3:52 PM
@Paul Woitaschek Have you tried the
kotlin-allopen
plugin?
p

Paul Woitaschek

04/06/2017, 4:29 PM
That will make everything all-open, not just the tests
m

michaelsims

04/06/2017, 6:32 PM
allopen is only for classes with an annotation that you specify, so you could annotate only the types you want to mock
p

Paul Woitaschek

04/06/2017, 8:41 PM
Then I could just Mark them as open
I don't see the benefit there
g

gildor

04/07/2017, 1:47 AM
@Paul Woitaschek You also must mark all the mocked methods as open, allopen can help with it
s

stepango

04/07/2017, 2:36 AM
@Paul Woitaschek there's no difference if all your data classes are open or not, it will only work through reflection, you still can't inherit from it in your normal code