*
* @return the {@link ContextLifeCycleMode} defined for the test
*/
private ContextLifeCycleMode getContextLifeCycleMode(TestClass testClass) {
ContextLifeCycle contextLifeCycle = testClass.getAnnotation(ContextLifeCycle.class);
if (contextLifeCycle != null) {
return contextLifeCycle.value();
}
return DEFAULT_LIFE_CYCLE_MODE;
}