Fixes for test failures

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1188 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Joakim Erdfelt 2010-01-07 23:52:11 +00:00
parent 1090bd1ae4
commit 6597ef2862
3 changed files with 7 additions and 12 deletions

View File

@ -43,13 +43,10 @@ public class JettyPolicyRuntimeTest extends TestCase
super.setUp();
String basedir = MavenTestingUtils.getBaseURI().toASCIIString();
evaluator.put("jetty.home",basedir);
evaluator.put("basedir",basedir);
System.out.println("basedir: " + basedir);
evaluator.put("jetty.home",MavenTestingUtils.getBaseURI().toASCIIString());
evaluator.put("basedir",MavenTestingUtils.getBaseURI().toASCIIString());
}
@Override
protected void tearDown() throws Exception
@ -177,8 +174,6 @@ public class JettyPolicyRuntimeTest extends TestCase
URL url = MavenTestingUtils.toTargetURL("test-policy/jetty-test-policy.jar");
System.out.println("Test URL: " + url.toString());
URLClassLoader loader ;
if (Thread.currentThread().getContextClassLoader() != null )
{

View File

@ -1,7 +1,7 @@
keystore "${basedir}/target/test-policy/jetty-policy-nobody.keystore", "jks";
keystore "${basedir}target/test-policy/jetty-policy-nobody.keystore", "jks";
grant signedBy "jetty-policy", codeBase "${basedir}/target/test-policy/jetty-test-policy.jar"
grant signedBy "jetty-policy", codeBase "${basedir}target/test-policy/jetty-test-policy.jar"
{
permission java.util.PropertyPermission "foo", "read";
}

View File

@ -1,6 +1,6 @@
keystore "${basedir}/target/test-policy/jetty-policy.keystore", "jks";
keystore "${basedir}target/test-policy/jetty-policy.keystore", "jks";
grant signedBy "jetty-policy-bad", codeBase "${basedir}/target/test-policy/jetty-test-policy.jar"
grant signedBy "jetty-policy-bad", codeBase "${basedir}target/test-policy/jetty-test-policy.jar"
{
permission java.util.PropertyPermission "foo", "read";
};