Does anyone know how to enable the Java Security Manager for unit tests?
It seems Jenkins uses the Java Security Manager, because TestCopy (which uses reflection) fails:
It does not fail if one executes the tests from the command line:
mvn test
This is bad, because the parallel test fails with the latest commit (
https://github.com/openpixi/openpixi/pull/67 ), but one can not see this in Jenkins, because the test already failed previously because of the security issue.
It would be great if someone can find out how to activate Security Manager from the command line (so that one can reproduce the problem locally) or how to deactivate Security Manager for the Jenkins Server (so that the test does not fail on the security issue).