Author: tolusha
Date: 2010-06-15 11:17:27 -0400 (Tue, 15 Jun 2010)
New Revision: 2612
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:11:57 UTC (rev 2611)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/util/TesterSecurityManager.java 2010-06-15
15:17:27 UTC (rev 2612)
@@ -23,7 +23,6 @@
/**
* @author <a href="anatoliy.bazko(a)exoplatform.org">Anatoliy
Bazko</a>
* @version $Id: TesterSecurityManager.java 111 2010-11-11 11:11:11Z tolusha $
- *
*/
public class TesterSecurityManager extends SecurityManager
{
@@ -52,6 +51,7 @@
{
String className = traceElements[i].getClassName();
String fileName = traceElements[i].getFileName();
+ String methodName = traceElements[i].getMethodName();
if (className.startsWith("org.exoplatform"))
{
@@ -62,7 +62,7 @@
}
// hide Exception
- if (fileName.equals("BaseStandaloneTest.java") ||
fileName.equals("SLF4JExoLogFactory.java"))
+ if (fileName.equals("BaseStandaloneTest.java"))
{
return;
}
@@ -79,13 +79,13 @@
}
else if (className.startsWith("org.apache.jackrabbit.test"))
{
- // hide Exception
- if (fileName.equals("JCRTestResult.java") ||
fileName.equals("RepositoryHelper.java"))
+ // hide Exception
+ if (fileName.equals("RepositoryHelper.java") &&
methodName.equals("getRepository"))
{
return;
}
- if (fileName.endsWith("Test.java"))
+ if (fileName.endsWith("Test.java") ||
fileName.equals("JCRTestResult.java"))
{
testCode = true;
}
@@ -93,13 +93,11 @@
{
srcCode = true;
}
-
}
else if
(className.startsWith("org.slf4j.impl.Log4jLoggerFactory"))
{
return;
}
-
}
e = e.getCause();