Moved bulk async reader tests to integration test project
This commit is contained in:
@@ -39,12 +39,12 @@ public class IbatisPagingItemReaderAsyncTests {
|
||||
/**
|
||||
* The number of items to read
|
||||
*/
|
||||
private static final int ITEM_COUNT = 100;
|
||||
private static final int ITEM_COUNT = 10;
|
||||
|
||||
/**
|
||||
* The number of threads to create
|
||||
*/
|
||||
private static final int THREAD_COUNT = 5;
|
||||
private static final int THREAD_COUNT = 3;
|
||||
|
||||
private static Log logger = LogFactory.getLog(IbatisPagingItemReaderAsyncTests.class);
|
||||
|
||||
|
||||
@@ -40,17 +40,17 @@ public class JdbcPagingItemReaderAsyncTests {
|
||||
/**
|
||||
* The page size
|
||||
*/
|
||||
private static final int PAGE_SIZE = 5;
|
||||
private static final int PAGE_SIZE = 2;
|
||||
|
||||
/**
|
||||
* The number of items to read
|
||||
*/
|
||||
private static final int ITEM_COUNT = 100;
|
||||
private static final int ITEM_COUNT = 10;
|
||||
|
||||
/**
|
||||
* The number of threads to create
|
||||
*/
|
||||
private static final int THREAD_COUNT = 5;
|
||||
private static final int THREAD_COUNT = 3;
|
||||
|
||||
private static Log logger = LogFactory.getLog(JdbcPagingItemReaderAsyncTests.class);
|
||||
|
||||
|
||||
@@ -37,12 +37,12 @@ public class JpaPagingItemReaderAsyncTests {
|
||||
/**
|
||||
* The number of items to read
|
||||
*/
|
||||
private static final int ITEM_COUNT = 100;
|
||||
private static final int ITEM_COUNT = 10;
|
||||
|
||||
/**
|
||||
* The number of threads to create
|
||||
*/
|
||||
private static final int THREAD_COUNT = 5;
|
||||
private static final int THREAD_COUNT = 3;
|
||||
|
||||
private static Log logger = LogFactory.getLog(JpaPagingItemReaderAsyncTests.class);
|
||||
|
||||
|
||||
@@ -47,9 +47,9 @@ public class TaskExecutorRepeatTemplateBulkAsynchronousTests {
|
||||
|
||||
static Log logger = LogFactory.getLog(TaskExecutorRepeatTemplateBulkAsynchronousTests.class);
|
||||
|
||||
private int total = 100;
|
||||
private int total = 20;
|
||||
|
||||
private int throttleLimit = 30;
|
||||
private int throttleLimit = 8;
|
||||
|
||||
private volatile int early = Integer.MAX_VALUE;
|
||||
|
||||
@@ -154,8 +154,8 @@ public class TaskExecutorRepeatTemplateBulkAsynchronousTests {
|
||||
taskExecutor.setConcurrencyLimit(1);
|
||||
|
||||
// This is kind of slow with only one thread, so reduce size:
|
||||
throttleLimit = 10;
|
||||
total = 20;
|
||||
throttleLimit = 4;
|
||||
total = 10;
|
||||
|
||||
template.setThrottleLimit(throttleLimit);
|
||||
template.setTaskExecutor(taskExecutor);
|
||||
|
||||
Reference in New Issue
Block a user