@ -68,7 +68,7 @@ public class MvcEndpointIntegrationTests {
@Test
public void defaultJsonResponseIsNotIndented ( ) throws Exception {
TestSecurityContextHolder . getContext ( ) . setAuthentication (
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A DMIN ") ) ;
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A CTUATOR ") ) ;
this . context = new AnnotationConfigWebApplicationContext ( ) ;
this . context . register ( SecureConfiguration . class ) ;
MockMvc mockMvc = createSecureMockMvc ( ) ;
@ -103,7 +103,7 @@ public class MvcEndpointIntegrationTests {
@Test
public void jsonExtensionProvided ( ) throws Exception {
TestSecurityContextHolder . getContext ( ) . setAuthentication (
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A DMIN ") ) ;
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A CTUATOR ") ) ;
this . context = new AnnotationConfigWebApplicationContext ( ) ;
this . context . register ( SecureConfiguration . class ) ;
MockMvc mockMvc = createSecureMockMvc ( ) ;
@ -151,7 +151,7 @@ public class MvcEndpointIntegrationTests {
}
@Test
public void sensitiveEndpointsAreSecureWithNonA dmin RoleWithCustomContextPath( )
public void sensitiveEndpointsAreSecureWithNonA ctuator RoleWithCustomContextPath( )
throws Exception {
TestSecurityContextHolder . getContext ( ) . setAuthentication (
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_USER" ) ) ;
@ -164,10 +164,10 @@ public class MvcEndpointIntegrationTests {
}
@Test
public void sensitiveEndpointsAreSecureWithA dmin RoleWithCustomContextPath( )
public void sensitiveEndpointsAreSecureWithA ctuator RoleWithCustomContextPath( )
throws Exception {
TestSecurityContextHolder . getContext ( ) . setAuthentication (
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A DMIN ") ) ;
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A CTUATOR ") ) ;
this . context = new AnnotationConfigWebApplicationContext ( ) ;
this . context . register ( SecureConfiguration . class ) ;
EnvironmentTestUtils . addEnvironment ( this . context ,
@ -199,7 +199,7 @@ public class MvcEndpointIntegrationTests {
private void assertIndentedJsonResponse ( Class < ? > configuration ) throws Exception {
TestSecurityContextHolder . getContext ( ) . setAuthentication (
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A DMIN ") ) ;
new TestingAuthenticationToken ( "user" , "N/A" , "ROLE_A CTUATOR ") ) ;
this . context = new AnnotationConfigWebApplicationContext ( ) ;
this . context . register ( configuration ) ;
EnvironmentTestUtils . addEnvironment ( this . context ,