Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by numeralEasy
, 1 year ago
Invalid mock method testbox.TestBox$2#getName2() for private method of internal class
java.lang.IllegalArgumentException: Invalid mock method testbox.TestBox$2#getName2() for private method of internal class	at testbox.TestBox$2.(TestBox.java:42)	at testbox.TestBox.testGetName_fails2(TestBox.java:42)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)