Skip to content

Commit e26478e

Browse files
committed
Polish Javadoc regarding @Commit support
1 parent 7b13311 commit e26478e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,8 +40,9 @@
4040
* @see org.springframework.test.context.jdbc.SqlConfig
4141
* @see org.springframework.test.context.jdbc.SqlConfig#transactionManager
4242
* @see org.springframework.test.context.ContextConfiguration
43-
* @deprecated As of Spring Framework 4.2, use {@code @Rollback} at the class
44-
* level and the {@code transactionManager} qualifier in {@code @Transactional}.
43+
* @deprecated As of Spring Framework 4.2, use {@code @Rollback} or
44+
* {@code @Commit} at the class level and the {@code transactionManager}
45+
* qualifier in {@code @Transactional}.
4546
*/
4647
@Deprecated
4748
@Documented

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ protected PlatformTransactionManager getTransactionManager(TestContext testConte
364364
/**
365365
* Determine whether or not to rollback transactions by default for the
366366
* supplied {@linkplain TestContext test context}.
367-
* <p>Supports {@link Rollback @Rollback} or
367+
* <p>Supports {@link Rollback @Rollback}, {@link Commit @Commit}, or
368368
* {@link TransactionConfiguration @TransactionConfiguration} at the
369369
* class-level.
370370
* @param testContext the test context for which the default rollback flag

0 commit comments

Comments
 (0)