HHH-14900 No need in tests to shadow the jdbcBatchSize field of BatchBuilderImpl extensions
This commit is contained in:
parent
aba67cfe6e
commit
5ad60c4b61
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue