Revision 794be65e
Added by Andreas Müller over 1 year ago
cdmlib-test/src/main/java/eu/etaxonomy/cdm/test/integration/CdmTransactionalIntegrationTestWithSecurity.java | ||
---|---|---|
16 | 16 |
@SpringApplicationContext("file:./target/test-classes/eu/etaxonomy/cdm/applicationContext-securityTest.xml") |
17 | 17 |
public abstract class CdmTransactionalIntegrationTestWithSecurity extends CdmTransactionalIntegrationTest { |
18 | 18 |
|
19 |
public static final Logger logger = LogManager.getLogger(CdmTransactionalIntegrationTestWithSecurity.class);
|
|
19 |
public static final Logger logger = LogManager.getLogger(); |
|
20 | 20 |
|
21 | 21 |
/** |
22 | 22 |
* Finds a nested RuntimeExceptions of the types {@link PermissionDeniedException}, {@link AccessDeniedException} |
23 | 23 |
* or returns null. |
24 |
* @param exception |
|
25 |
* @return |
|
26 | 24 |
*/ |
27 | 25 |
public static RuntimeException findSecurityRuntimeException(Throwable exception) { |
28 | 26 |
return SecurityExceptionUtils.findSecurityRuntimeException(exception); |
29 | 27 |
} |
30 | 28 |
|
31 |
|
|
32 | 29 |
/** |
33 | 30 |
* find in the nested <code>exception</code> the exception of type <code>clazz</code> |
34 | 31 |
* or returns <code>null</code> if no such exception is found. |
... | ... | |
40 | 37 |
public static <T extends Throwable> T findThrowableOfTypeIn(Class<T> clazz, Throwable exception) { |
41 | 38 |
return SecurityExceptionUtils.findThrowableOfTypeIn(clazz, exception); |
42 | 39 |
} |
43 |
} |
|
40 |
} |
Also available in: Unified diff
cleanup