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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user