JUnit 4 based test class, which verifies the expected functionality of {@link SpringJUnit4ClassRunner} in conjunction with support for applicationcontexts loaded from Java {@link Properties} files. Specifically, the{@link ContextConfiguration#loader() loaderClass} and{@link ContextConfiguration#resourceSuffix() resourceSuffix} attributes of@ContextConfiguration are tested.
Since no {@link ContextConfiguration#locations() locations} are explicitlydefined, the {@link ContextConfiguration#resourceSuffix() resourceSuffix} isset to "-context.properties", and {@link ContextConfiguration#generateDefaultLocations() generateDefaultLocations}is left set to its default value of true
, this test class's dependencies will be injected via {@link Autowired annotation-based autowiring} from beans defined in the{@link ApplicationContext} loaded from the default classpath resource: "/org/springframework/test/junit4/PropertiesBasedSpringJUnit4ClassRunnerAppCtxTests-context.properties
".
@author Sam Brannen
@since 2.5
@see GenericPropertiesContextLoader
@see SpringJUnit4ClassRunnerAppCtxTests