Pārlūkot izejas kodu

Upgrade to JUnit 4.12 (#23877)

* Upgrade to JUnit 4.12
* Add permission to junit 4.12 and remove junit4-ant specific permission
David Pilato 8 gadi atpakaļ
vecāks
revīzija
186b401fd8

+ 1 - 1
buildSrc/version.properties

@@ -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

+ 1 - 6
core/src/main/resources/org/elasticsearch/bootstrap/test-framework.policy

@@ -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";
 };