Package | Description |
---|---|
org.springframework.boot.test.context.runner |
Test utilities to run application contexts for testing.
|
org.springframework.boot.test.util |
General purpose test utilities.
|
Modifier and Type | Method and Description |
---|---|
protected abstract SELF |
AbstractApplicationContextRunner.newInstance(Supplier<C> contextFactory,
List<org.springframework.context.ApplicationContextInitializer<? super C>> initializers,
TestPropertyValues environmentProperties,
TestPropertyValues systemProperties,
ClassLoader classLoader,
org.springframework.context.ApplicationContext parent,
List<Configurations> configurations) |
protected ApplicationContextRunner |
ApplicationContextRunner.newInstance(Supplier<org.springframework.context.ConfigurableApplicationContext> contextFactory,
List<org.springframework.context.ApplicationContextInitializer<? super org.springframework.context.ConfigurableApplicationContext>> initializers,
TestPropertyValues environmentProperties,
TestPropertyValues systemProperties,
ClassLoader classLoader,
org.springframework.context.ApplicationContext parent,
List<Configurations> configurations) |
protected ReactiveWebApplicationContextRunner |
ReactiveWebApplicationContextRunner.newInstance(Supplier<ConfigurableReactiveWebApplicationContext> contextFactory,
List<org.springframework.context.ApplicationContextInitializer<? super ConfigurableReactiveWebApplicationContext>> initializers,
TestPropertyValues environmentProperties,
TestPropertyValues systemProperties,
ClassLoader classLoader,
org.springframework.context.ApplicationContext parent,
List<Configurations> configurations) |
protected WebApplicationContextRunner |
WebApplicationContextRunner.newInstance(Supplier<org.springframework.web.context.ConfigurableWebApplicationContext> contextFactory,
List<org.springframework.context.ApplicationContextInitializer<? super org.springframework.web.context.ConfigurableWebApplicationContext>> initializers,
TestPropertyValues environmentProperties,
TestPropertyValues systemProperties,
ClassLoader classLoader,
org.springframework.context.ApplicationContext parent,
List<Configurations> configurations) |
Constructor and Description |
---|
AbstractApplicationContextRunner(Supplier<C> contextFactory,
List<org.springframework.context.ApplicationContextInitializer<? super C>> initializers,
TestPropertyValues environmentProperties,
TestPropertyValues systemProperties,
ClassLoader classLoader,
org.springframework.context.ApplicationContext parent,
List<Configurations> configurations)
Create a new
AbstractApplicationContextRunner instance. |
Modifier and Type | Method and Description |
---|---|
TestPropertyValues |
TestPropertyValues.and(String... pairs)
Builder method to add more properties.
|
static TestPropertyValues |
TestPropertyValues.empty()
Return an empty
TestPropertyValues instance. |
static TestPropertyValues |
TestPropertyValues.of(Iterable<String> pairs)
Return a new
TestPropertyValues with the underlying map populated with the
given property pairs. |
static TestPropertyValues |
TestPropertyValues.of(Stream<String> pairs)
Return a new
TestPropertyValues with the underlying map populated with the
given property pairs. |
static TestPropertyValues |
TestPropertyValues.of(String... pairs)
Return a new
TestPropertyValues with the underlying map populated with the
given property pairs. |
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.