Join Slack
Powered by
Hi everyone!! Oh God!! Only 8 people in Channel T...
# test
c
cesards
04/17/2016, 12:43 AM
Hi everyone!! Oh God!! Only 8 people in Channel Testing?? That’s bad! 😕 I’m having troubles mocking some dependencies. Here is the SO link (related to problem 1):
http://stackoverflow.com/questions/36669762/missingmethodinvocationexception-testing-an-opened-class-in-kotlin
1) I couldn’t mock the dependencies of the class I wanted to test, so I had to make thoses classes
open
in order to mock them. I’m using a library from
@nhaarman
2) My second problem are lazy initialisation. I get a null pointer exception because of this:
Open in Slack
Previous
Next