You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/java/org/springframework/data/r2dbc/core/AbstractTransactionalDatabaseClientIntegrationTests.java
+9-2
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@
24
24
importjava.util.concurrent.ArrayBlockingQueue;
25
25
26
26
importio.r2dbc.spi.ConnectionFactory;
27
+
importorg.assertj.core.api.Condition;
27
28
importorg.junit.After;
28
29
importorg.junit.Before;
29
30
importorg.junit.Test;
@@ -156,7 +157,7 @@ public void executeInsertInManagedTransaction() {
156
157
.expectNext(1) //
157
158
.verifyComplete();
158
159
159
-
assertThat(jdbc.queryForMap("SELECT id, name, manual FROM legoset")).containsEntry("id", 42055);
160
+
assertThat(jdbc.queryForMap("SELECT id, name, manual FROM legoset")).hasEntrySatisfying("id", numberOf(42055));
160
161
}
161
162
162
163
@Test// gh-2
@@ -174,7 +175,7 @@ public void executeInsertInAutoCommitTransaction() {
174
175
.expectNext(1) //
175
176
.verifyComplete();
176
177
177
-
assertThat(jdbc.queryForMap("SELECT id, name, manual FROM legoset")).containsEntry("id", 42055);
178
+
assertThat(jdbc.queryForMap("SELECT id, name, manual FROM legoset")).hasEntrySatisfying("id", numberOf(42055));
178
179
}
179
180
180
181
@Test// gh-2
@@ -313,6 +314,12 @@ public void shouldRollbackTransactionUsingManagedTransactions() {
0 commit comments