Upgrade to JUnit 4.12 (#23877)

* Upgrade to JUnit 4.12
* Add permission to junit 4.12 and remove junit4-ant specific permission
This commit is contained in:
David Pilato 2017-05-02 09:58:21 +02:00 committed by GitHub
parent 40ff169c54
commit 186b401fd8
2 changed files with 2 additions and 7 deletions

View File

@ -14,7 +14,7 @@ jna = 4.4.0
# test dependencies
randomizedrunner = 2.5.0
junit = 4.11
junit = 4.12
httpclient = 4.5.2
# When updating httpcore, please also update core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy
httpcore = 4.4.5

View File

@ -53,12 +53,7 @@ grant codeBase "${codebase.randomizedtesting-runner-2.5.0.jar}" {
permission java.lang.RuntimePermission "accessDeclaredMembers";
};
grant codeBase "${codebase.junit4-ant-2.3.2.jar}" {
// needed for stream redirection
permission java.lang.RuntimePermission "setIO";
};
grant codeBase "${codebase.junit-4.11.jar}" {
grant codeBase "${codebase.junit-4.12.jar}" {
// needed for TestClass creation
permission java.lang.RuntimePermission "accessDeclaredMembers";
};