Package ubic.gemma.persistence.util
Class SecurityUtilsTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- ubic.gemma.persistence.util.SecurityUtilsTest
-
- All Implemented Interfaces:
Aware
,ApplicationContextAware
@ContextConfiguration @TestExecutionListeners(WithSecurityContextTestExecutionListener.class) public class SecurityUtilsTest extends AbstractJUnit4SpringContextTests
-
-
Field Summary
-
Fields inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
applicationContext, logger
-
-
Constructor Summary
Constructors Constructor Description SecurityUtilsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testIsAdmin()
void
testIsUserLoggedIn()
void
testRunAsAdmin()
-
Methods inherited from class org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
setApplicationContext
-
-
-
-
Method Detail
-
testIsAdmin
@WithMockUser(authorities="GROUP_ADMIN") public void testIsAdmin()
-
testIsUserLoggedIn
@WithMockUser public void testIsUserLoggedIn()
-
testRunAsAdmin
@WithMockUser(authorities="GROUP_RUN_AS_ADMIN") public void testRunAsAdmin()
-
-