public final class WebApplicationContextRunner extends AbstractApplicationContextRunner<WebApplicationContextRunner,org.springframework.web.context.ConfigurableWebApplicationContext,AssertableWebApplicationContext>
ConfigurableWebApplicationContext の ApplicationContext runner。 詳細は AbstractApplicationContextRunner を参照してください。
| コンストラクターと説明 |
|---|
WebApplicationContextRunner() 基になるソースとして MockServletContext を含む AnnotationConfigWebApplicationContext を使用して、新しい WebApplicationContextRunner インスタンスを作成します。 |
WebApplicationContextRunner(SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> contextFactory) 指定された contextFactory を基になるソースとして使用して、新しい WebApplicationContextRunner インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected WebApplicationContextRunner | newInstance(SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> contextFactory, ListSE<org.springframework.context.ApplicationContextInitializer<? super org.springframework.web.context.ConfigurableWebApplicationContext>> initializers, TestPropertyValues environmentProperties, TestPropertyValues systemProperties, ClassLoaderSE classLoader, org.springframework.context.ApplicationContext parent, ListSE<Configurations> configurations) |
static SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> | withMockServletContext(SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> contextFactory) 指定された contextFactory を装飾して、新しく作成された各 WebApplicationContext に MockServletContext を設定します。 |
run, with, withClassLoader, withConfiguration, withInitializer, withParent, withPropertyValues, withSystemProperties, withUserConfigurationcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic WebApplicationContextRunner()
MockServletContext を含む AnnotationConfigWebApplicationContext を使用して、新しい WebApplicationContextRunner インスタンスを作成します。public WebApplicationContextRunner(SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> contextFactory)
contextFactory を基になるソースとして使用して、新しい WebApplicationContextRunner インスタンスを作成します。contextFactory - 各呼び出しで新しいインスタンスを返すサプライヤー protected WebApplicationContextRunner newInstance(SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> contextFactory, ListSE<org.springframework.context.ApplicationContextInitializer<? super org.springframework.web.context.ConfigurableWebApplicationContext>> initializers, TestPropertyValues environmentProperties, TestPropertyValues systemProperties, ClassLoaderSE classLoader, org.springframework.context.ApplicationContext parent, ListSE<Configurations> configurations)
AbstractApplicationContextRunner<WebApplicationContextRunner,org.springframework.web.context.ConfigurableWebApplicationContext,AssertableWebApplicationContext> の newInstance public static SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> withMockServletContext(SupplierSE<org.springframework.web.context.ConfigurableWebApplicationContext> contextFactory)
contextFactory を装飾して、新しく作成された各 WebApplicationContext に MockServletContext を設定します。contextFactory - 装飾するコンテキストファクトリ MockServletContext を設定する更新されたサプライヤー Copyright © 2019 Pivotal Software, Inc.. All rights reserved.