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.
|
Constructor and Description |
---|
AbstractApplicationContextRunner(Supplier<C> contextFactory,
boolean allowBeanDefinitionOverriding,
List<ApplicationContextInitializer<? super C>> initializers,
TestPropertyValues environmentProperties,
TestPropertyValues systemProperties,
ClassLoader classLoader,
ApplicationContext parent,
List<AbstractApplicationContextRunner.BeanRegistration<?>> beanRegistrations,
List<Configurations> configurations)
Create a new
AbstractApplicationContextRunner instance. |
Modifier and Type | Method and Description |
---|---|
TestPropertyValues |
TestPropertyValues.and(Iterable<String> pairs)
Return a new
TestPropertyValues instance with additional entries. |
TestPropertyValues |
TestPropertyValues.and(Map<String,String> map)
Return a new
TestPropertyValues instance with additional entries. |
TestPropertyValues |
TestPropertyValues.and(Stream<String> pairs)
Return a new
TestPropertyValues instance with additional entries. |
<T> TestPropertyValues |
TestPropertyValues.and(Stream<T> stream,
Function<T,TestPropertyValues.Pair> mapper)
Return a new
TestPropertyValues instance with additional entries. |
TestPropertyValues |
TestPropertyValues.and(String... pairs)
Return a new
TestPropertyValues instance with additional entries. |
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(Map<String,String> map)
Return a new
TestPropertyValues with the underlying map populated with the
given map entries. |
static TestPropertyValues |
TestPropertyValues.of(Stream<String> pairs)
Return a new
TestPropertyValues with the underlying map populated with the
given property pairs. |
static <T> TestPropertyValues |
TestPropertyValues.of(Stream<T> stream,
Function<T,TestPropertyValues.Pair> mapper)
Return a new
TestPropertyValues with the underlying map populated with the
given stream. |
static TestPropertyValues |
TestPropertyValues.of(String... pairs)
Return a new
TestPropertyValues with the underlying map populated with the
given property pairs. |