org.springframework.test.web.servlet.setup.MockMvcConfigurer Java Examples
The following examples show how to use
org.springframework.test.web.servlet.setup.MockMvcConfigurer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MockMvcHtmlUnitDriverBuilder.java From spring-analysis-note with MIT License | 4 votes |
protected MockMvcHtmlUnitDriverBuilder(WebApplicationContext context, MockMvcConfigurer configurer) { super(context, configurer); }
Example #2
Source File: MockMvcWebClientBuilder.java From spring-analysis-note with MIT License | 4 votes |
protected MockMvcWebClientBuilder(WebApplicationContext context, MockMvcConfigurer configurer) { super(context, configurer); }
Example #3
Source File: MockMvcHtmlUnitDriverBuilder.java From java-technology-stack with MIT License | 4 votes |
protected MockMvcHtmlUnitDriverBuilder(WebApplicationContext context, MockMvcConfigurer configurer) { super(context, configurer); }
Example #4
Source File: MockMvcWebClientBuilder.java From java-technology-stack with MIT License | 4 votes |
protected MockMvcWebClientBuilder(WebApplicationContext context, MockMvcConfigurer configurer) { super(context, configurer); }
Example #5
Source File: MockMvcHtmlUnitDriverBuilder.java From spring4-understanding with Apache License 2.0 | 4 votes |
protected MockMvcHtmlUnitDriverBuilder(WebApplicationContext context, MockMvcConfigurer configurer) { super(context, configurer); }
Example #6
Source File: MockMvcWebClientBuilder.java From spring4-understanding with Apache License 2.0 | 4 votes |
protected MockMvcWebClientBuilder(WebApplicationContext context, MockMvcConfigurer configurer) { super(context, configurer); }
Example #7
Source File: MockMvcHtmlUnitDriverBuilder.java From spring-analysis-note with MIT License | 3 votes |
/** * Create a new {@code MockMvcHtmlUnitDriverBuilder} based on the supplied * {@link WebApplicationContext} and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@link MockMvc} * instance from (never {@code null}) * @param configurer the {@code MockMvcConfigurer} to apply (never {@code null}) * @return the MockMvcHtmlUnitDriverBuilder to customize */ public static MockMvcHtmlUnitDriverBuilder webAppContextSetup(WebApplicationContext context, MockMvcConfigurer configurer) { Assert.notNull(context, "WebApplicationContext must not be null"); Assert.notNull(configurer, "MockMvcConfigurer must not be null"); return new MockMvcHtmlUnitDriverBuilder(context, configurer); }
Example #8
Source File: MockMvcHtmlUnitDriverBuilder.java From java-technology-stack with MIT License | 3 votes |
/** * Create a new {@code MockMvcHtmlUnitDriverBuilder} based on the supplied * {@link WebApplicationContext} and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@link MockMvc} * instance from (never {@code null}) * @param configurer the {@code MockMvcConfigurer} to apply (never {@code null}) * @return the MockMvcHtmlUnitDriverBuilder to customize */ public static MockMvcHtmlUnitDriverBuilder webAppContextSetup(WebApplicationContext context, MockMvcConfigurer configurer) { Assert.notNull(context, "WebApplicationContext must not be null"); Assert.notNull(configurer, "MockMvcConfigurer must not be null"); return new MockMvcHtmlUnitDriverBuilder(context, configurer); }
Example #9
Source File: MockMvcHtmlUnitDriverBuilder.java From spring4-understanding with Apache License 2.0 | 3 votes |
/** * Create a new {@code MockMvcHtmlUnitDriverBuilder} based on the supplied * {@link WebApplicationContext} and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@link MockMvc} * instance from; never {@code null} * @param configurer the {@code MockMvcConfigurer} to apply; never {@code null} * @return the MockMvcHtmlUnitDriverBuilder to customize */ public static MockMvcHtmlUnitDriverBuilder webAppContextSetup(WebApplicationContext context, MockMvcConfigurer configurer) { Assert.notNull(context, "WebApplicationContext must not be null"); Assert.notNull(configurer, "MockMvcConfigurer must not be null"); return new MockMvcHtmlUnitDriverBuilder(context, configurer); }
Example #10
Source File: MockMvcWebClientBuilder.java From spring-analysis-note with MIT License | 2 votes |
/** * Create a new {@code MockMvcWebClientBuilder} based on the supplied * {@link WebApplicationContext} and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@link MockMvc} * instance from; never {@code null} * @param configurer the {@code MockMvcConfigurer} to apply; never {@code null} * @return the MockMvcWebClientBuilder to customize */ public static MockMvcWebClientBuilder webAppContextSetup(WebApplicationContext context, MockMvcConfigurer configurer) { Assert.notNull(context, "WebApplicationContext must not be null"); Assert.notNull(configurer, "MockMvcConfigurer must not be null"); return new MockMvcWebClientBuilder(context, configurer); }
Example #11
Source File: MockMvcWebConnectionBuilderSupport.java From spring-analysis-note with MIT License | 2 votes |
/** * Create a new instance using the supplied {@link WebApplicationContext} * and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@code MockMvc} * instance from; never {@code null} * @param configurer the MockMvcConfigurer to apply; never {@code null} */ protected MockMvcWebConnectionBuilderSupport(WebApplicationContext context, MockMvcConfigurer configurer) { this(MockMvcBuilders.webAppContextSetup(context).apply(configurer).build()); }
Example #12
Source File: MockMvcWebClientBuilder.java From java-technology-stack with MIT License | 2 votes |
/** * Create a new {@code MockMvcWebClientBuilder} based on the supplied * {@link WebApplicationContext} and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@link MockMvc} * instance from; never {@code null} * @param configurer the {@code MockMvcConfigurer} to apply; never {@code null} * @return the MockMvcWebClientBuilder to customize */ public static MockMvcWebClientBuilder webAppContextSetup(WebApplicationContext context, MockMvcConfigurer configurer) { Assert.notNull(context, "WebApplicationContext must not be null"); Assert.notNull(configurer, "MockMvcConfigurer must not be null"); return new MockMvcWebClientBuilder(context, configurer); }
Example #13
Source File: MockMvcWebConnectionBuilderSupport.java From java-technology-stack with MIT License | 2 votes |
/** * Create a new instance using the supplied {@link WebApplicationContext} * and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@code MockMvc} * instance from; never {@code null} * @param configurer the MockMvcConfigurer to apply; never {@code null} */ protected MockMvcWebConnectionBuilderSupport(WebApplicationContext context, MockMvcConfigurer configurer) { this(MockMvcBuilders.webAppContextSetup(context).apply(configurer).build()); }
Example #14
Source File: MockMvcWebClientBuilder.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Create a new {@code MockMvcWebClientBuilder} based on the supplied * {@link WebApplicationContext} and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@link MockMvc} * instance from; never {@code null} * @param configurer the {@code MockMvcConfigurer} to apply; never {@code null} * @return the MockMvcWebClientBuilder to customize */ public static MockMvcWebClientBuilder webAppContextSetup(WebApplicationContext context, MockMvcConfigurer configurer) { Assert.notNull(context, "WebApplicationContext must not be null"); Assert.notNull(configurer, "MockMvcConfigurer must not be null"); return new MockMvcWebClientBuilder(context, configurer); }
Example #15
Source File: MockMvcWebConnectionBuilderSupport.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Create a new instance using the supplied {@link WebApplicationContext} * and {@link MockMvcConfigurer}. * @param context the {@code WebApplicationContext} to create a {@code MockMvc} * instance from; never {@code null} * @param configurer the MockMvcConfigurer to apply; never {@code null} */ protected MockMvcWebConnectionBuilderSupport(WebApplicationContext context, MockMvcConfigurer configurer) { this(MockMvcBuilders.webAppContextSetup(context).apply(configurer).build()); }