Browse Source

Delete unnecessary redeclaration of test methods

This commit deletes methods in RollbackForRequiredEjbTxDaoTestNGTests
that were unnecessarily redeclared. The redeclaration is required for
JUnit's @FixMethodOrder support but not for TestNG's built-in support
for dependent methods.

Issue: SPR-6132
pull/450/head
Sam Brannen 11 years ago
parent
commit
8105011368
  1. 18
      spring-test/src/test/java/org/springframework/test/context/testng/transaction/ejb/RollbackForRequiredEjbTxDaoTestNGTests.java

18
spring-test/src/test/java/org/springframework/test/context/testng/transaction/ejb/RollbackForRequiredEjbTxDaoTestNGTests.java

@ -37,24 +37,6 @@ import static org.testng.AssertJUnit.*; @@ -37,24 +37,6 @@ import static org.testng.AssertJUnit.*;
@TransactionConfiguration(defaultRollback = true)
public class RollbackForRequiredEjbTxDaoTestNGTests extends CommitForRequiredEjbTxDaoTestNGTests {
/**
* Redeclared to ensure test method execution order. Simply delegates to super.
*/
@Test
@Override
public void test1InitialState() {
super.test1InitialState();
}
/**
* Redeclared to ensure test method execution order. Simply delegates to super.
*/
@Test(dependsOnMethods = "test1InitialState")
@Override
public void test2IncrementCount1() {
super.test2IncrementCount1();
}
/**
* Overrides parent implementation in order to change expectations to align with
* behavior associated with "required" transactions on repositories/DAOs and

Loading…
Cancel
Save