that uses final classes. I have tried to implement the solution for
When I use the solution linked above, I get the error (see
withResourcesFolder file):
java.lang.ExceptionInInitializerError
When I remove the solution, I get the original error ([ ] are my addition) (see withoutResourcesFolder):
Cannot mock/spy class [multiple classes cannot be mocked]
Mockito cannot mock/spy following:
- final classes
- anonymous classes
- primitive types
I've also noticed that when I get this error the issue is not always that the class is final or an anonymous class or a primitive type... sometimes it is a
class file that has a type
`enum`. For example:
public enum RobotType {
...
}
I appreciate any help that anyone can offer.
Best,
Daniel