java.lang.Exception: Method __tc_wrapped_testCurrentId should be public

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 Terracotta by october, 1 year ago
Method __tc_wrapped_testCurrentId should be public
via YouTrack by Unknown author, 1 year ago
Method __feature1 should be void
via Google Groups by Eric Kolotyluk, 6 months ago
java.lang.Exception: Method __tc_wrapped_testCurrentId should be public
at org.junit.internal.runners.MethodValidator.validateTestMethods(MethodValidator.java:74)
at org.junit.internal.runners.MethodValidator.validateInstanceMethods(MethodValidator.java:28)
at org.junit.internal.runners.MethodValidator.validateMethodsForDefaultRunner(MethodValidator.java:43)
at org.junit.internal.runners.JUnit4ClassRunner.validate(JUnit4ClassRunner.java:36)
at org.junit.internal.runners.JUnit4ClassRunner.(JUnit4ClassRunner.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:33)
at org.apache.maven.surefire.junit4.JUnit4TestSet.(JUnit4TestSet.java:45)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)

Users with the same issue

Once, 9 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.