Closed takla21 closed 2 months ago
No parameter of a mock class's method's should be non-nullable. Can you show how you generated your mock class with @GenerateNiceMocks
?
Ok I was a dummy here. I didn't read the generated mock part. Sorry for wasting your time
I'm trying to write a test in which I'm trying to mock a method with a non-null parameter. However, I can't compile when I'm trying to use
any
for that non-null parameter.Is there something I'm missing or it's a bug?