Skip to content

Commit fb21caf

Browse files
committed
Upgrade to JUnit 4.12 (#23877)
* Upgrade to JUnit 4.12 * Add permission to junit 4.12 and remove junit4-ant specific permission Backport of #23877 in 5.x branch
1 parent 3da847a commit fb21caf

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jna = 4.4.0
1313

1414
# test dependencies
1515
randomizedrunner = 2.5.0
16-
junit = 4.11
16+
junit = 4.12
1717
httpclient = 4.5.2
1818
httpcore = 4.4.5
1919
commonslogging = 1.1.3

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,7 @@ grant codeBase "${codebase.randomizedtesting-runner-2.5.0.jar}" {
5353
permission java.lang.RuntimePermission "accessDeclaredMembers";
5454
};
5555

56-
grant codeBase "${codebase.junit4-ant-2.3.2.jar}" {
57-
// needed for stream redirection
58-
permission java.lang.RuntimePermission "setIO";
59-
};
60-
61-
grant codeBase "${codebase.junit-4.11.jar}" {
56+
grant codeBase "${codebase.junit-4.12.jar}" {
6257
// needed for TestClass creation
6358
permission java.lang.RuntimePermission "accessDeclaredMembers";
6459
};

0 commit comments

Comments
 (0)