HHH-14900 No need in tests to shadow the jdbcBatchSize field of BatchBuilderImpl extensions

This commit is contained in:
Sanne Grinovero 2021-10-25 17:09:04 +01:00 committed by Sanne Grinovero
parent aba67cfe6e
commit 5ad60c4b61
3 changed files with 3 additions and 21 deletions

View File

@ -151,16 +151,10 @@ public class JtaWithFailingBatchTest extends AbstractJtaBatchTest {
}
public static class TestBatchBuilder extends BatchBuilderImpl {
private int jdbcBatchSize;
@Override
public void setJdbcBatchSize(int jdbcBatchSize) {
this.jdbcBatchSize = jdbcBatchSize;
}
@Override
public Batch buildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator) {
return buildBatchTest( key, jdbcCoordinator, jdbcBatchSize );
return buildBatchTest( key, jdbcCoordinator, getJdbcBatchSize() );
}
protected BatchingBatch buildBatchTest(BatchKey key, JdbcCoordinator jdbcCoordinator, int jdbcBatchSize) {

View File

@ -127,16 +127,10 @@ public class JtaWithStatementsBatchTest extends AbstractJtaBatchTest {
}
public static class TestBatchBuilder extends BatchBuilderImpl {
private int jdbcBatchSize;
@Override
public void setJdbcBatchSize(int jdbcBatchSize) {
this.jdbcBatchSize = jdbcBatchSize;
}
@Override
public Batch buildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator) {
return buildBatchTest( key, jdbcCoordinator, jdbcBatchSize );
return buildBatchTest( key, jdbcCoordinator, getJdbcBatchSize() );
}
protected BatchingBatch buildBatchTest(BatchKey key, JdbcCoordinator jdbcCoordinator, int jdbcBatchSize) {

View File

@ -109,16 +109,10 @@ public class InsertOrderingTest extends BaseCoreFunctionalTestCase {
}
public static class StatsBatchBuilder extends BatchBuilderImpl {
private int jdbcBatchSize;
@Override
public void setJdbcBatchSize(int jdbcBatchSize) {
this.jdbcBatchSize = jdbcBatchSize;
}
@Override
public Batch buildBatch(BatchKey key, JdbcCoordinator jdbcCoordinator) {
return new StatsBatch( key, jdbcCoordinator, jdbcBatchSize );
return new StatsBatch( key, jdbcCoordinator, getJdbcBatchSize() );
}
}
}