Implementation of the ContextLoader
strategy for creating a
JavaConfigApplicationContext
for a test's
@ContextConfiguration
Example usage:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"com.myco.TestDatabaseConfiguration", "com.myco.config"},
loader = JavaConfigContextLoader.class)
public MyTests { ... }
Implementation note: At this time, due to restrictions in Java annotations and Spring's
TestContext framework, locations of classes / packages must be specified as strings to
the ContextConfiguration annotation.