Class org.springframework.context.annotation.PropertySourceAnnotationTests
Tests
| Test |
Duration |
Result |
| orderingDoesntReplaceExisting |
0.014s |
passed |
| orderingIsLifo |
0.027s |
passed |
| orderingWithAndWithoutNameAndFourResourceLocations |
0.008s |
passed |
| orderingWithAndWithoutNameAndMultipleResourceLocations |
0.031s |
passed |
| withCustomFactory |
0.028s |
passed |
| withCustomFactoryAsMeta |
0.016s |
passed |
| withEmptyResourceLocations |
0.003s |
passed |
| withExplicitName |
0.022s |
passed |
| withIgnoredPropertySource |
0.014s |
passed |
| withImplicitName |
0.005s |
passed |
| withMissingPropertySource |
0.006s |
passed |
| withMultipleResourceLocations |
0.007s |
passed |
| withNameAndMultipleResourceLocations |
0.006s |
passed |
| withNamedPropertySources |
0.014s |
passed |
| withPropertySources |
0.016s |
passed |
| withResolvablePlaceholder |
0.018s |
passed |
| withResolvablePlaceholderAndFactoryBean |
0.023s |
passed |
| withSameSourceImportedInDifferentOrder |
0.025s |
passed |
| withTestProfileBeans |
0.022s |
passed |
| withUnresolvablePlaceholder |
0.005s |
passed |
| withUnresolvablePlaceholderAndDefault |
0.019s |
passed |
Standard output
16:45:41.117 [Test worker] WARN org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.context.annotation.PropertySourceAnnotationTests$ConfigWithMissingPropertySource]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/context/annotation/missing.properties] cannot be opened because it does not exist
16:45:41.136 [Test worker] WARN org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.context.annotation.PropertySourceAnnotationTests$ConfigWithEmptyResourceLocations]; nested exception is java.lang.IllegalArgumentException: At least one @PropertySource(value) location is required
16:45:41.207 [Test worker] WARN org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.context.annotation.PropertySourceAnnotationTests$ConfigWithUnresolvablePlaceholder]; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'unresolvable' in value "classpath:${unresolvable}/p1.properties"