Browse Source

Polish Javadoc regarding @Commit support

pull/1050/head
Sam Brannen 10 years ago
parent
commit
e26478e3de
  1. 7
      spring-test/src/main/java/org/springframework/test/context/transaction/TransactionConfiguration.java
  2. 2
      spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java

7
spring-test/src/main/java/org/springframework/test/context/transaction/TransactionConfiguration.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -40,8 +40,9 @@ import java.lang.annotation.Target; @@ -40,8 +40,9 @@ import java.lang.annotation.Target;
* @see org.springframework.test.context.jdbc.SqlConfig
* @see org.springframework.test.context.jdbc.SqlConfig#transactionManager
* @see org.springframework.test.context.ContextConfiguration
* @deprecated As of Spring Framework 4.2, use {@code @Rollback} at the class
* level and the {@code transactionManager} qualifier in {@code @Transactional}.
* @deprecated As of Spring Framework 4.2, use {@code @Rollback} or
* {@code @Commit} at the class level and the {@code transactionManager}
* qualifier in {@code @Transactional}.
*/
@Deprecated
@Documented

2
spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java

@ -364,7 +364,7 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis @@ -364,7 +364,7 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
/**
* Determine whether or not to rollback transactions by default for the
* supplied {@linkplain TestContext test context}.
* <p>Supports {@link Rollback @Rollback} or
* <p>Supports {@link Rollback @Rollback}, {@link Commit @Commit}, or
* {@link TransactionConfiguration @TransactionConfiguration} at the
* class-level.
* @param testContext the test context for which the default rollback flag

Loading…
Cancel
Save