Package org.springframework.test.annotation.DirtiesContext

Examples of org.springframework.test.annotation.DirtiesContext.HierarchyMode


        "After test method: context %s, class dirties context [%s], class mode [%s], method dirties context [%s].",
        testContext, classDirtiesContext, classMode, methodDirtiesContext));
    }

    if (methodDirtiesContext || (classMode == AFTER_EACH_TEST_METHOD)) {
      HierarchyMode hierarchyMode = methodDirtiesContext ? methodAnnAttrs.<HierarchyMode> getEnum("hierarchyMode")
          : classAnnAttrs.<HierarchyMode> getEnum("hierarchyMode");
      dirtyContext(testContext, hierarchyMode);
    }
  }
View Full Code Here


    if (logger.isDebugEnabled()) {
      logger.debug(String.format("After test class: context %s, dirtiesContext [%s].", testContext,
        dirtiesContext));
    }
    if (dirtiesContext) {
      HierarchyMode hierarchyMode = annAttrs.<HierarchyMode> getEnum("hierarchyMode");
      dirtyContext(testContext, hierarchyMode);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.test.annotation.DirtiesContext.HierarchyMode

Copyright © 2018 www.massapicom. 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.