*
* @return created {@link ApplicationContext}
*/
private ApplicationContext getApplicationContext(TestClass testClass) {
SpringAnnotatedConfiguration springConfiguration = testClass.getAnnotation(SpringAnnotatedConfiguration.class);
String[] packages = springConfiguration.packages();
Class<?>[] classes = springConfiguration.classes();
Class<? extends ApplicationContext> customAnnotationContextClass;
customAnnotationContextClass = getCustomAnnotationContextClass();
if (springConfiguration.contextClass() != ApplicationContext.class) {
customAnnotationContextClass = springConfiguration.contextClass();
}
if (customAnnotationContextClass != null) {
// creates custom annotated application context