Requalify tests as LONG_RUNNING
Prior to this commit, some tests would belong to the PERFORMANCE `TestGroup`, while they were not testing for performance but rather performing functional tests that involve long running operations or timeouts. This commit moves those tests to the LONG_RUNNING `TestGroup`. See gh-24830
This commit is contained in:
@@ -57,7 +57,7 @@ import static org.mockito.Mockito.inOrder;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.springframework.core.testfixture.TestGroup.PERFORMANCE;
|
||||
import static org.springframework.core.testfixture.TestGroup.LONG_RUNNING;
|
||||
|
||||
/**
|
||||
* @author Juergen Hoeller
|
||||
@@ -973,7 +973,7 @@ public class DataSourceTransactionManagerTests {
|
||||
doTestTransactionWithTimeout(1);
|
||||
}
|
||||
|
||||
@EnabledForTestGroups(PERFORMANCE)
|
||||
@EnabledForTestGroups(LONG_RUNNING)
|
||||
private void doTestTransactionWithTimeout(int timeout) throws Exception {
|
||||
PreparedStatement ps = mock(PreparedStatement.class);
|
||||
given(con.getAutoCommit()).willReturn(true);
|
||||
|
||||
@@ -63,7 +63,7 @@ import static org.mockito.Mockito.inOrder;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.springframework.core.testfixture.TestGroup.PERFORMANCE;
|
||||
import static org.springframework.core.testfixture.TestGroup.LONG_RUNNING;
|
||||
|
||||
/**
|
||||
* @author Juergen Hoeller
|
||||
@@ -979,7 +979,7 @@ public class JdbcTransactionManagerTests {
|
||||
doTestTransactionWithTimeout(1);
|
||||
}
|
||||
|
||||
@EnabledForTestGroups(PERFORMANCE)
|
||||
@EnabledForTestGroups(LONG_RUNNING)
|
||||
private void doTestTransactionWithTimeout(int timeout) throws Exception {
|
||||
PreparedStatement ps = mock(PreparedStatement.class);
|
||||
given(con.getAutoCommit()).willReturn(true);
|
||||
|
||||
Reference in New Issue
Block a user