Skip to content

Commit 64721b3

Browse files
committed
Polish formatting
1 parent 02f0f92 commit 64721b3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

spring-r2dbc/src/test/java/org/springframework/r2dbc/connection/ConnectionFactoryUtilsTests.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,24 +136,27 @@ void shouldTranslateBadSqlGrammarException() {
136136
void messageGeneration() {
137137
Exception exception = ConnectionFactoryUtils.convertR2dbcException("TASK",
138138
"SOME-SQL", new R2dbcTransientResourceException("MESSAGE"));
139-
assertThat(exception).isExactlyInstanceOf(
140-
TransientDataAccessResourceException.class).hasMessage("TASK; SQL [SOME-SQL]; MESSAGE");
139+
assertThat(exception)
140+
.isExactlyInstanceOf(TransientDataAccessResourceException.class)
141+
.hasMessage("TASK; SQL [SOME-SQL]; MESSAGE");
141142
}
142143

143144
@Test
144145
void messageGenerationNullSQL() {
145146
Exception exception = ConnectionFactoryUtils.convertR2dbcException("TASK", null,
146147
new R2dbcTransientResourceException("MESSAGE"));
147-
assertThat(exception).isExactlyInstanceOf(
148-
TransientDataAccessResourceException.class).hasMessage("TASK; MESSAGE");
148+
assertThat(exception)
149+
.isExactlyInstanceOf(TransientDataAccessResourceException.class)
150+
.hasMessage("TASK; MESSAGE");
149151
}
150152

151153
@Test
152154
void messageGenerationNullMessage() {
153155
Exception exception = ConnectionFactoryUtils.convertR2dbcException("TASK",
154156
"SOME-SQL", new R2dbcTransientResourceException());
155-
assertThat(exception).isExactlyInstanceOf(
156-
TransientDataAccessResourceException.class).hasMessage("TASK; SQL [SOME-SQL]; null");
157+
assertThat(exception)
158+
.isExactlyInstanceOf(TransientDataAccessResourceException.class)
159+
.hasMessage("TASK; SQL [SOME-SQL]; null");
157160
}
158161

159162

0 commit comments

Comments
 (0)