Browse Source

Make the tests pass under Gump

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275152 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
417e81bb3c
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/testcases/org/apache/tools/ant/types/PermissionsTest.java

+ 7
- 1
src/testcases/org/apache/tools/ant/types/PermissionsTest.java View File

@@ -86,7 +86,13 @@ public class PermissionsTest extends TestCase {
perm.setName("java.home"); perm.setName("java.home");
perm.setClass("java.util.PropertyPermission"); perm.setClass("java.util.PropertyPermission");
perms.addConfiguredGrant(perm); perms.addConfiguredGrant(perm);

perm = new Permissions.Permission();
perm.setActions("read");
perm.setName("file.encoding");
perm.setClass("java.util.PropertyPermission");
perms.addConfiguredGrant(perm);

// Revoke permission to write user.home (granted above via user.*), still able to read though. // Revoke permission to write user.home (granted above via user.*), still able to read though.
// and the default granted permission to read os.name. // and the default granted permission to read os.name.
perm = new Permissions.Permission(); perm = new Permissions.Permission();


Loading…
Cancel
Save