Make addPropertySourcesToEnvironment() public
This commit makes the recently introduced addPropertySourcesToEnvironment(ConfigurableEnvironment, ResourceLoader, List<PropertySourceDescriptor>) method in TestPropertySourceUtils public so that it can be used by third parties (for example, Spring Boot). Closes gh-30981
This commit is contained in:
		
							parent
							
								
									8a6c52b018
								
							
						
					
					
						commit
						837e8960c2
					
				|  | @ -245,8 +245,10 @@ public abstract class TestPropertySourceUtils { | |||
| 	 * descriptors and registering property sources | ||||
| 	 * @since 6.1 | ||||
| 	 * @see TestPropertySource#locations | ||||
| 	 * @see TestPropertySource#encoding | ||||
| 	 * @see TestPropertySource#factory | ||||
| 	 * @see PropertySourceFactory | ||||
| 	 * @see #addPropertySourcesToEnvironment(ConfigurableEnvironment, ResourceLoader, List) | ||||
| 	 */ | ||||
| 	public static void addPropertySourcesToEnvironment(ConfigurableApplicationContext context, | ||||
| 			List<PropertySourceDescriptor> descriptors) { | ||||
|  | @ -276,10 +278,11 @@ public abstract class TestPropertySourceUtils { | |||
| 	 * descriptors and registering property sources | ||||
| 	 * @since 6.1 | ||||
| 	 * @see TestPropertySource#locations | ||||
| 	 * @see TestPropertySource#encoding | ||||
| 	 * @see TestPropertySource#factory | ||||
| 	 * @see PropertySourceFactory | ||||
| 	 */ | ||||
| 	private static void addPropertySourcesToEnvironment(ConfigurableEnvironment environment, | ||||
| 	public static void addPropertySourcesToEnvironment(ConfigurableEnvironment environment, | ||||
| 			ResourceLoader resourceLoader, List<PropertySourceDescriptor> descriptors) { | ||||
| 
 | ||||
| 		Assert.notNull(environment, "'environment' must not be null"); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue