When running JUnit integration tests on the main branch the following (red) message appears in IntelliJ:
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.dspace.AbstractDSpaceIntegrationTest (file:/local-path-to-dspace-clone/dspace-api/target/test-classes/)
WARNING: Please consider reporting this to the maintainers of org.dspace.AbstractDSpaceIntegrationTest
WARNING: System::setSecurityManager will be removed in a future release
It is caused by System.setSecurityManager() in AbstractDSpaceIntegrationTest:
I've seen this as well. It's just a warning at this point, and I'm not sure myself how to solve the issue (removing these calls causes tests to fail). But, it needs a volunteer to investigate & find a solution.
Bug Description
When running JUnit integration tests on the
main
branch the following (red) message appears in IntelliJ:It is caused by
System.setSecurityManager()
inAbstractDSpaceIntegrationTest
:https://github.com/DSpace/DSpace/blob/50aaec1ee223991e2a777e3da1186aaf301db11d/dspace-api/src/test/java/org/dspace/AbstractDSpaceIntegrationTest.java#L64
https://github.com/DSpace/DSpace/blob/50aaec1ee223991e2a777e3da1186aaf301db11d/dspace-api/src/test/java/org/dspace/AbstractDSpaceIntegrationTest.java#L100