Java Code Examples for org.springframework.test.context.TestPropertySource#locations()

The following examples show how to use org.springframework.test.context.TestPropertySource#locations() . 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: TestPropertySourceAttributes.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Create a new {@code TestPropertySourceAttributes} instance for the
 * supplied {@link TestPropertySource @TestPropertySource} annotation and
 * the {@linkplain Class test class} that declared it, enforcing
 * configuration rules and detecting a default properties file if
 * necessary.
 * @param declaringClass the class that declared {@code @TestPropertySource}
 * @param testPropertySource the annotation from which to retrieve the attributes
 * @since 4.2
 */
TestPropertySourceAttributes(Class<?> declaringClass, TestPropertySource testPropertySource) {
	this(declaringClass, testPropertySource.locations(), testPropertySource.inheritLocations(),
		testPropertySource.properties(), testPropertySource.inheritProperties());
}
 
Example 2
Source File: TestPropertySourceAttributes.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Create a new {@code TestPropertySourceAttributes} instance for the
 * supplied {@link TestPropertySource @TestPropertySource} annotation and
 * the {@linkplain Class test class} that declared it, enforcing
 * configuration rules and detecting a default properties file if
 * necessary.
 * @param declaringClass the class that declared {@code @TestPropertySource}
 * @param testPropertySource the annotation from which to retrieve the attributes
 * @since 4.2
 */
TestPropertySourceAttributes(Class<?> declaringClass, TestPropertySource testPropertySource) {
	this(declaringClass, testPropertySource.locations(), testPropertySource.inheritLocations(),
		testPropertySource.properties(), testPropertySource.inheritProperties());
}
 
Example 3
Source File: TestPropertySourceAttributes.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Create a new {@code TestPropertySourceAttributes} instance for the
 * supplied {@link TestPropertySource @TestPropertySource} annotation and
 * the {@linkplain Class test class} that declared it, enforcing
 * configuration rules and detecting a default properties file if
 * necessary.
 * @param declaringClass the class that declared {@code @TestPropertySource}
 * @param testPropertySource the annotation from which to retrieve the attributes
 * @since 4.2
 */
TestPropertySourceAttributes(Class<?> declaringClass, TestPropertySource testPropertySource) {
	this(declaringClass, testPropertySource.locations(), testPropertySource.inheritLocations(),
		testPropertySource.properties(), testPropertySource.inheritProperties());
}