When I write some unit test with Junit and JMockit, I make a mock for some private methods as
MockUp<MyClass> myMethod = new MockUp<MyClass>() { @Mock private void mockMethod() { } };
however when it runs I got this error.
java.lang.IllegalAccessError: tried to access method path-to-test-file(;path-to-file-which-tested) at ...