mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-11-04 00:28:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			736 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			736 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
[[test-mockmvc-smmrpp]]
 | 
						|
= SecurityMockMvcRequestPostProcessors
 | 
						|
:page-section-summary-toc: 1
 | 
						|
Spring MVC Test provides a convenient interface (`RequestPostProcessor`) that you can use to modify a request.
 | 
						|
Spring Security provides a number of `RequestPostProcessor` implementations that make testing easier.
 | 
						|
To use Spring Security's `RequestPostProcessor` implementations, use the following static import:
 | 
						|
 | 
						|
[tabs]
 | 
						|
======
 | 
						|
Java::
 | 
						|
+
 | 
						|
[source,java,role="primary"]
 | 
						|
----
 | 
						|
import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*;
 | 
						|
----
 | 
						|
 | 
						|
Kotlin::
 | 
						|
+
 | 
						|
[source,kotlin,role="secondary"]
 | 
						|
----
 | 
						|
import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*
 | 
						|
----
 | 
						|
======
 |