Package org.springframework.test.annotation

Examples of org.springframework.test.annotation.Rollback


   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" + rollback
            + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
View Full Code Here


   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" +
            rollback + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
View Full Code Here

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" + rollback
            + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
View Full Code Here

     * @return the <entityManager>rollback</entityManager> flag for the supplied test context
     * @throws Exception if an error occurs while determining the rollback flag
     */
    protected final boolean isRollback(TestContext testContext) throws Exception {
        boolean rollback = isDefaultRollback(testContext);
        Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
        if (rollbackAnnotation != null) {
            boolean rollbackOverride = rollbackAnnotation.value();
            if (logger.isDebugEnabled()) {
                logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" + rollback
                        + "] for test context [" + testContext + "]");
            }
            rollback = rollbackOverride;
View Full Code Here

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = findAnnotation(testContext.getTestMethod(), Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug(String.format(
          "Method-level @Rollback(%s) overrides default rollback [%s] for test context %s.",
          rollbackOverride, rollback, testContext));
      }
View Full Code Here

   * @return the <em>rollback</em> flag for the supplied test context
   * @throws Exception if an error occurs while determining the rollback flag
   */
  protected final boolean isRollback(TestContext testContext) throws Exception {
    boolean rollback = isDefaultRollback(testContext);
    Rollback rollbackAnnotation = testContext.getTestMethod().getAnnotation(Rollback.class);
    if (rollbackAnnotation != null) {
      boolean rollbackOverride = rollbackAnnotation.value();
      if (logger.isDebugEnabled()) {
        logger.debug("Method-level @Rollback(" + rollbackOverride + ") overrides default rollback [" +
            rollback + "] for test context [" + testContext + "]");
      }
      rollback = rollbackOverride;
View Full Code Here

TOP

Related Classes of org.springframework.test.annotation.Rollback

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.