Examples of classMode()


Examples of org.springframework.test.annotation.DirtiesContext.classMode()

    final Class<DirtiesContext> annotationType = DirtiesContext.class;

    boolean methodDirtiesContext = testMethod.isAnnotationPresent(annotationType);
    boolean classDirtiesContext = testClass.isAnnotationPresent(annotationType);
    DirtiesContext classDirtiesContextAnnotation = testClass.getAnnotation(annotationType);
    ClassMode classMode = classDirtiesContext ? classDirtiesContextAnnotation.classMode() : null;

    if (logger.isDebugEnabled()) {
      logger.debug("After test method: context [" + testContext + "], class dirties context ["
          + classDirtiesContext + "], class mode [" + classMode + "], method dirties context ["
          + methodDirtiesContext + "].");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.