Moved bulk async reader tests to integration test project

This commit is contained in:
dsyer
2010-01-14 13:39:27 +00:00
parent 56dafae8f1
commit 239cba1d43
46 changed files with 1130 additions and 115 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);