summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authormcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-12-02 11:39:47 +0000
committermcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-12-02 11:39:47 +0000
commit2e56e7202012b2b7dce49a1f860980d086ace7e4 (patch)
treebf1195ba513f12629d71fc52bba7deadf60dc062 /java/sca
parenteed639ccf7fd95e0b31caf61787126e69592f207 (diff)
Reduced the length of the delays in some unit tests since they do not need to be so long to test the required functionality
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@722431 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/Jsr237WorkSchedulerTestCase.java20
-rw-r--r--java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/ThreadPoolWorkManagerTestCase.java20
2 files changed, 20 insertions, 20 deletions
diff --git a/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/Jsr237WorkSchedulerTestCase.java b/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/Jsr237WorkSchedulerTestCase.java
index 185394d7e8..38c8459da8 100644
--- a/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/Jsr237WorkSchedulerTestCase.java
+++ b/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/Jsr237WorkSchedulerTestCase.java
@@ -107,11 +107,11 @@ public class Jsr237WorkSchedulerTestCase {
@Test
public void testMultipleJobs() {
// Create the work and register it
- JSR237MyRunnable fast1 = new JSR237MyRunnable(50);
- JSR237MyRunnable fast2 = new JSR237MyRunnable(100);
- JSR237MyRunnable fast3 = new JSR237MyRunnable(200);
- JSR237MyRunnable slow1= new JSR237MyRunnable(2000);
- JSR237MyRunnable slow2 = new JSR237MyRunnable(2000);
+ JSR237MyRunnable fast1 = new JSR237MyRunnable(5);
+ JSR237MyRunnable fast2 = new JSR237MyRunnable(10);
+ JSR237MyRunnable fast3 = new JSR237MyRunnable(20);
+ JSR237MyRunnable slow1= new JSR237MyRunnable(200);
+ JSR237MyRunnable slow2 = new JSR237MyRunnable(200);
JSR237MyRunnerListener listener = new JSR237MyRunnerListener();
workSchedular.scheduleWork(fast1, listener);
workSchedular.scheduleWork(fast2, listener);
@@ -137,11 +137,11 @@ public class Jsr237WorkSchedulerTestCase {
@Test
public void testMultipleJobsSomeFail() {
// Create the work and register it
- JSR237MyRunnable fast1 = new JSR237MyRunnable(50);
- JSR237MyRunnable fast2 = new JSR237MyRunnable(100);
- JSR237MyRunnable fast3 = new JSR237MyRunnable(200);
- JSR237MyRunnable slow1= new JSR237MyRunnable(2000);
- JSR237MyRunnable slow2 = new JSR237MyRunnable(2000);
+ JSR237MyRunnable fast1 = new JSR237MyRunnable(5);
+ JSR237MyRunnable fast2 = new JSR237MyRunnable(10);
+ JSR237MyRunnable fast3 = new JSR237MyRunnable(20);
+ JSR237MyRunnable slow1= new JSR237MyRunnable(200);
+ JSR237MyRunnable slow2 = new JSR237MyRunnable(200);
JSR237MyFailingRunnable fail1 = new JSR237MyFailingRunnable();
JSR237MyFailingRunnable fail2 = new JSR237MyFailingRunnable();
JSR237MyRunnerListener listener = new JSR237MyRunnerListener();
diff --git a/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/ThreadPoolWorkManagerTestCase.java b/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/ThreadPoolWorkManagerTestCase.java
index 715f5f95c0..8e04579019 100644
--- a/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/ThreadPoolWorkManagerTestCase.java
+++ b/java/sca/modules/core/src/test/java/org/apache/tuscany/sca/core/work/ThreadPoolWorkManagerTestCase.java
@@ -106,11 +106,11 @@ public class ThreadPoolWorkManagerTestCase {
@Test
public void testMultipleJobs() {
// Create the work and register it
- TimeDelayWork fast1 = new TimeDelayWork(50);
- TimeDelayWork fast2 = new TimeDelayWork(100);
- TimeDelayWork fast3 = new TimeDelayWork(200);
- TimeDelayWork slow1= new TimeDelayWork(2000);
- TimeDelayWork slow2 = new TimeDelayWork(2000);
+ TimeDelayWork fast1 = new TimeDelayWork(5);
+ TimeDelayWork fast2 = new TimeDelayWork(10);
+ TimeDelayWork fast3 = new TimeDelayWork(20);
+ TimeDelayWork slow1= new TimeDelayWork(200);
+ TimeDelayWork slow2 = new TimeDelayWork(200);
TestWorkListener listener = new TestWorkListener();
workManager.schedule(fast1, listener);
workManager.schedule(fast2, listener);
@@ -136,11 +136,11 @@ public class ThreadPoolWorkManagerTestCase {
@Test
public void testMultipleJobsSomeFail() {
// Create the work and register it
- TimeDelayWork fast1 = new TimeDelayWork(50);
- TimeDelayWork fast2 = new TimeDelayWork(100);
- TimeDelayWork fast3 = new TimeDelayWork(200);
- TimeDelayWork slow1= new TimeDelayWork(2000);
- TimeDelayWork slow2 = new TimeDelayWork(2000);
+ TimeDelayWork fast1 = new TimeDelayWork(5);
+ TimeDelayWork fast2 = new TimeDelayWork(10);
+ TimeDelayWork fast3 = new TimeDelayWork(20);
+ TimeDelayWork slow1= new TimeDelayWork(200);
+ TimeDelayWork slow2 = new TimeDelayWork(200);
FailingWork fail1 = new FailingWork();
FailingWork fail2 = new FailingWork();
TestWorkListener listener = new TestWorkListener();