Author: dkatayev
Date: 2010-06-14 08:17:27 -0400 (Mon, 14 Jun 2010)
New Revision: 2577
Modified:
jcr/trunk/exo.jcr.component.core/pom.xml
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/BaseStandaloneTest.java
jcr/trunk/exo.jcr.component.core/src/test/resources/test.policy
Log:
EXOJCR-756 BaseStandaloneTest now uses /target/test-classes/test.policy instead of
src/test/resources/test.policy
Modified: jcr/trunk/exo.jcr.component.core/pom.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core/pom.xml 2010-06-14 12:06:33 UTC (rev 2576)
+++ jcr/trunk/exo.jcr.component.core/pom.xml 2010-06-14 12:17:27 UTC (rev 2577)
@@ -468,7 +468,7 @@
<goal>run</goal>
</goals>
</execution>
- <!-- execution>
+ <execution>
<id>prepare-test-policy</id>
<phase>process-test-resources</phase>
<configuration>
@@ -489,7 +489,7 @@
<goals>
<goal>run</goal>
</goals>
- </execution -->
+ </execution>
</executions>
<dependencies>
<dependency>
Modified:
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/BaseStandaloneTest.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/BaseStandaloneTest.java 2010-06-14
12:06:33 UTC (rev 2576)
+++
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/BaseStandaloneTest.java 2010-06-14
12:17:27 UTC (rev 2577)
@@ -164,7 +164,7 @@
fileCleaner = wfcleaner.getFileCleaner();
holder = new ReaderSpoolFileHolder();
- URL url =
Thread.currentThread().getContextClassLoader().getResource("test.policy");
+ URL url =
Thread.currentThread().getContextClassLoader().getResource("./test.policy");
Policy.setPolicy(new PolicyFile(url));
System.setSecurityManager(new SecurityManager());
Modified: jcr/trunk/exo.jcr.component.core/src/test/resources/test.policy
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/test/resources/test.policy 2010-06-14 12:06:33
UTC (rev 2576)
+++ jcr/trunk/exo.jcr.component.core/src/test/resources/test.policy 2010-06-14 12:17:27
UTC (rev 2577)
@@ -1,14 +1,14 @@
-grant codeBase "@MAVEN_REPO@/-"{
+grant codeBase "file:@MAVEN_REPO@/-"{
permission java.security.AllPermission;
};
-grant codeBase "@MAIN_CLASSES@/-"{
+grant codeBase "file:@MAIN_CLASSES@/-"{
permission java.security.AllPermission;
};
-grant codeBase "@TEST_CLASSES@/-"{
+grant codeBase "file:@TEST_CLASSES@/-"{
permission java.lang.RuntimePermission "setSecurityManager";
permission java.lang.RuntimePermission "getJCRSystemSession";
permission java.lang.RuntimePermission "manageRepository";