diff --git a/jetty-policy/src/test/java/org/eclipse/jetty/policy/TestJettyPolicyRuntime.java b/jetty-policy/src/test/java/org/eclipse/jetty/policy/TestJettyPolicyRuntime.java index dc57cd97a91..879e9976155 100644 --- a/jetty-policy/src/test/java/org/eclipse/jetty/policy/TestJettyPolicyRuntime.java +++ b/jetty-policy/src/test/java/org/eclipse/jetty/policy/TestJettyPolicyRuntime.java @@ -12,7 +12,7 @@ package org.eclipse.jetty.policy; //You may elect to redistribute this code under either of these licenses. //======================================================================== -/* + import java.io.File; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; @@ -22,16 +22,12 @@ import java.security.AccessControlException; import java.security.Policy; import java.util.Collections; import java.util.HashMap; -*/ + import junit.framework.TestCase; public class TestJettyPolicyRuntime extends TestCase { - public void testNothing() - { - } -/* HashMap evaluator = new HashMap(); @Override @@ -165,7 +161,7 @@ public class TestJettyPolicyRuntime extends TestCase System.setSecurityManager( new SecurityManager() ); - URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar"); + URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy-1.0.jar"); URLClassLoader loader ; if (Thread.currentThread().getContextClassLoader() != null ) @@ -229,7 +225,7 @@ public class TestJettyPolicyRuntime extends TestCase System.setSecurityManager( new SecurityManager() ); - URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar"); + URL url = new URL("file://" + getWorkingDirectory() + "/target/test-policy/jetty-test-policy.jar"); URLClassLoader loader ; if (Thread.currentThread().getContextClassLoader() != null ) @@ -294,5 +290,4 @@ public class TestJettyPolicyRuntime extends TestCase } return cwd; } - */ } diff --git a/jetty-policy/src/test/resources/jetty-bad-certificate.policy b/jetty-policy/src/test/resources/jetty-bad-certificate.policy index 1220210c859..83755f3cc08 100644 --- a/jetty-policy/src/test/resources/jetty-bad-certificate.policy +++ b/jetty-policy/src/test/resources/jetty-bad-certificate.policy @@ -1,7 +1,7 @@ keystore "file://${basedir}/target/test-policy/jetty-policy-nobody.keystore", "jks"; -grant signedBy "jetty-policy", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar" +grant signedBy "jetty-policy", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0.jar" { permission java.util.PropertyPermission "foo", "read"; } diff --git a/jetty-policy/src/test/resources/jetty-certificate.policy b/jetty-policy/src/test/resources/jetty-certificate.policy index 3d6092844ba..538df04b680 100644 --- a/jetty-policy/src/test/resources/jetty-certificate.policy +++ b/jetty-policy/src/test/resources/jetty-certificate.policy @@ -1,6 +1,6 @@ keystore "file://${basedir}/target/test-policy/jetty-policy.keystore", "jks"; -grant signedBy "jetty-policy-bad", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0-SNAPSHOT.jar" +grant signedBy "jetty-policy-bad", codeBase "file://${basedir}/target/test-policy/jetty-test-policy-1.0.jar" { permission java.util.PropertyPermission "foo", "read"; };