| IllegalAccessErrors Running JUnit Tests During Build [message #634067] |
Wed, 20 October 2010 08:54  |
elvisisking Messages: 8 Registered: October 2010 |
Junior Member |
|
|
I have a plugin (org.a.test) that is used to test another plugin (org.a). Both plugins have the same Java packages defined. The classes being tested in org.a have "protected" and package private methods. When I do a build using Tycho both jars (org.a, org.a.test) build fine.
However, during the build when the JUnit tests are run I get a runtime java.lang.IllegalAccessError whenever a test plugin class calls one of these protected methods. All the tests run successfully within Eclipse using the JUnit runner. I have Eclipse's compiler setting for "forbidden reference access rules" set to be an error.
Any ideas?
Thanks!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01669 seconds