Skip to content

Commit 6643a9f

Browse files
committed
fix
1 parent 9dd27e4 commit 6643a9f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/ReactiveStatelessDefaultBatchSizeTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
import static org.assertj.core.api.Assertions.assertThat;
3131

3232
/**
33-
* The test aims to check that methods accepting the batch size as parameter e.g. {@link Stage.StatelessSession#insert(int, Object...)}
34-
* work when {@link AvailableSettings#STATEMENT_BATCH_SIZE} hasn't been set.
33+
* The test aims to check that methods accepting the batch size as parameter
34+
* e.g. {@link Stage.StatelessSession#insert(int, Object...)} work
35+
* when {@link AvailableSettings#STATEMENT_BATCH_SIZE} hasn't been set.
3536
*/
3637
@Timeout(value = 10, timeUnit = MINUTES)
3738
public class ReactiveStatelessDefaultBatchSizeTest extends BaseReactiveTest {
@@ -144,7 +145,8 @@ public void testStageBatchingInsertMultiple(VertxTestContext context) {
144145

145146
@Test
146147
public void testStageBatchingInsertNoBatchSizeParameter(VertxTestContext context) {
147-
test( context, getSessionFactory().withStatelessTransaction( s -> s.insert( PIGS ) )
148+
test( context, getSessionFactory()
149+
.withStatelessTransaction( s -> s.insert( PIGS ) )
148150
.thenAccept( v -> assertSqlLogTracker( "insert into pig \\(name,id\\) values (.*)" ) )
149151
.thenCompose( v -> assertExpectedResult( PIGS ) )
150152
);
@@ -289,7 +291,7 @@ public void testMutinyBatchingUpdateAllNoBatchSizeParameter(VertxTestContext con
289291
.chain( pigs -> {
290292
pigs.get( 0 ).setName( "One updated" );
291293
pigs.get( 1 ).setName( "Two updated" );
292-
return s.updateAll( 10, pigs.toArray() );
294+
return s.updateAll( pigs.toArray() );
293295
} ) )
294296
)
295297
.invoke( () -> assertSqlLogTracker( "update pig set name=.* where id=.*" ) )

0 commit comments

Comments
 (0)