I'm trying to unit test a class which has something like this
Obj1 var = (Obj2) var2;
When I try to run unit test on these using mockito, I get an error from mockito saying it can't be typecasted from one form to another. How do I fix this?
I'm trying to unit test a class which has something like this
Obj1 var = (Obj2) var2;
When I try to run unit test on these using mockito, I get an error from mockito saying it can't be typecasted from one form to another. How do I fix this?