Java 类org.springframework.test.web.servlet.MockMvcBuilder 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MockMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(MockMvcBuilder.class)
public DefaultMockMvcBuilder mockMvcBuilder(
        List<MockMvcBuilderCustomizer> customizers) {
    DefaultMockMvcBuilder builder = MockMvcBuilders.webAppContextSetup(this.context);
    for (MockMvcBuilderCustomizer customizer : customizers) {
        customizer.customize(builder);
    }
    return builder;
}
项目:spring-boot-concourse    文件:MockMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(MockMvcBuilder.class)
public DefaultMockMvcBuilder mockMvcBuilder(
        List<MockMvcBuilderCustomizer> customizers) {
    DefaultMockMvcBuilder builder = MockMvcBuilders.webAppContextSetup(this.context);
    for (MockMvcBuilderCustomizer customizer : customizers) {
        customizer.customize(builder);
    }
    return builder;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MockMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MockMvc mockMvc(MockMvcBuilder builder) {
    return builder.build();
}
项目:spring-boot-concourse    文件:MockMvcAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MockMvc mockMvc(MockMvcBuilder builder) {
    return builder.build();
}
项目:bonita-ui-designer    文件:UIDesignerMockMvcBuilder.java   
public static MockMvcBuilder mockServer(Object... controllers) {
    TestWebMvcConfigurationSupport configuration = new TestWebMvcConfigurationSupport(new DesignerConfig());
    return standaloneSetup(controllers)
            .setMessageConverters(configuration.createMessageConverters())
            .setHandlerExceptionResolvers(configuration.handlerExceptionResolver());
}