[jboss-dev-forums] [Design the new POJO MicroContainer] - Target directory is not correct for tests in new Maven build
adrian@jboss.org
do-not-reply at jboss.com
Wed Apr 4 08:30:10 EDT 2007
The AccessController test is not working properly in eclipse.
This is indicitive a greater failure in that tests are being given all permissions
when they should run with restricted rights.
This stems from a "hack" in our test framework where we look for the phrase
"tests" in the url to see whether to give the class restricted access:
org.jboss.test.security.TestsPolicyPlugin
| // Is this a test location?
| File file = new File(url.toString());
| String name = file.getName();
| if (name.indexOf("tests") != -1 || name.indexOf("-test.jar") != -1)
| {
|
But with the new maven build, the test classes don't live in somewhere with
tests in the name, they are in the same codebase as the base classes.
I assume this is an issue with the eclipse:eclipse plugin?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034519#4034519
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034519
More information about the jboss-dev-forums
mailing list