[exo-jcr-commits] exo-jcr SVN: r2614 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Jun 16 03:20:49 EDT 2010
Author: tolusha
Date: 2010-06-16 03:20:49 -0400 (Wed, 16 Jun 2010)
New Revision: 2614
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java
Log:
EXOJCR-756: fix TesterSecurityManager
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java 2010-06-15 15:23:31 UTC (rev 2613)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java 2010-06-16 07:20:49 UTC (rev 2614)
@@ -51,11 +51,10 @@
{
String className = traceElements[i].getClassName();
String fileName = traceElements[i].getFileName();
- String methodName = traceElements[i].getMethodName();
if (className.startsWith("org.exoplatform"))
{
- // TesterSecurityManager is not a part of source code
+ // TesterSecurityManager should not be a part of source code
if (fileName.equals("TesterSecurityManager.java"))
{
continue;
@@ -79,8 +78,8 @@
}
else if (className.startsWith("org.apache.jackrabbit.test"))
{
- // hide Exception during JCR initialization
- if (fileName.equals("RepositoryHelper.java") && methodName.equals("getRepository"))
+ // Allow access to instances
+ if (fileName.equals("RepositoryHelper.java"))
{
return;
}
@@ -89,10 +88,6 @@
{
testCode = true;
}
- else
- {
- srcCode = true;
- }
}
else if (className.startsWith("org.slf4j.impl.Log4jLoggerFactory"))
{
More information about the exo-jcr-commits
mailing list