Apply SingleSpaceSeparator Checkstyle module
This commit also fixes its violations. Closes gh-31469
This commit is contained in:
@@ -60,7 +60,7 @@ import static org.mockito.Mockito.verify;
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
@MockitoSettings(strictness = Strictness.LENIENT)
|
||||
class SqlLobValueTests {
|
||||
class SqlLobValueTests {
|
||||
|
||||
@Mock
|
||||
private PreparedStatement preparedStatement;
|
||||
|
||||
@@ -181,32 +181,32 @@ public class DataSourceTransactionManagerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitTrue() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitTrue() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(true, false, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitFalse() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitFalse() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(false, false, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnection() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnection() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(true, true, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnection() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnection() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(false, true, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(true, true, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(false, true, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ import static org.mockito.Mockito.verify;
|
||||
* @author Thomas Risberg
|
||||
* @author Juergen Hoeller
|
||||
*/
|
||||
public class SqlQueryTests {
|
||||
public class SqlQueryTests {
|
||||
|
||||
//FIXME inline?
|
||||
private static final String SELECT_ID =
|
||||
|
||||
@@ -187,32 +187,32 @@ public class JdbcTransactionManagerTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitTrue() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitTrue() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(true, false, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitFalse() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitFalse() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(false, false, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnection() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnection() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(true, true, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnection() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnection() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(false, true, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitTrueAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(true, true, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
public void testTransactionRollbackWithAutoCommitFalseAndLazyConnectionAndCreateStatement() throws Exception {
|
||||
doTestTransactionRollbackRestoringAutoCommit(false, true, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public class SQLExceptionCustomTranslatorTests {
|
||||
|
||||
@Test
|
||||
public void dataAccessResourceException() {
|
||||
SQLException dataAccessResourceEx = new SQLDataException("", "", 2);
|
||||
SQLException dataAccessResourceEx = new SQLDataException("", "", 2);
|
||||
DataAccessException dae = sext.translate("task", "SQL", dataAccessResourceEx);
|
||||
assertThat(dae.getCause()).isEqualTo(dataAccessResourceEx);
|
||||
assertThat(dae).isInstanceOf(TransientDataAccessResourceException.class);
|
||||
|
||||
Reference in New Issue
Block a user