File tree 1 file changed +10
-5
lines changed
src/test/java/org/springframework/data/r2dbc/repository/query
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import static org .assertj .core .api .Assertions .*;
19
19
20
+ import org .assertj .core .api .SoftAssertions ;
20
21
import org .junit .Test ;
21
22
22
23
/**
23
24
* Unit tests for {@link ExpressionQuery}.
24
25
*
25
26
* @author Mark Paluch
27
+ * @author Jens Schauder
26
28
*/
27
29
public class ExpressionQueryUnitTests {
28
30
@@ -35,10 +37,13 @@ public void bindsMultipleSpelParametersCorrectly() {
35
37
assertThat (query .getQuery ())
36
38
.isEqualTo ("INSERT IGNORE INTO table (x, y) VALUES (:__synthetic_0__, :__synthetic_1__)" );
37
39
38
- assertThat (query .getBindings ()).hasSize (2 );
39
- assertThat (query .getBindings ().get (0 ).getExpression ()).isEqualTo ("#point.x" );
40
- assertThat (query .getBindings ().get (0 ).getParameterName ()).isEqualTo ("__synthetic_0__" );
41
- assertThat (query .getBindings ().get (1 ).getExpression ()).isEqualTo ("#point.y" );
42
- assertThat (query .getBindings ().get (1 ).getParameterName ()).isEqualTo ("__synthetic_1__" );
40
+ SoftAssertions .assertSoftly (softly -> {
41
+
42
+ softly .assertThat (query .getBindings ()).hasSize (2 );
43
+ softly .assertThat (query .getBindings ().get (0 ).getExpression ()).isEqualTo ("#point.x" );
44
+ softly .assertThat (query .getBindings ().get (0 ).getParameterName ()).isEqualTo ("__synthetic_0__" );
45
+ softly .assertThat (query .getBindings ().get (1 ).getExpression ()).isEqualTo ("#point.y" );
46
+ softly .assertThat (query .getBindings ().get (1 ).getParameterName ()).isEqualTo ("__synthetic_1__" );
47
+ });
43
48
}
44
49
}
You can’t perform that action at this time.
0 commit comments