[smart-load-test commit] r138 - trunk/smart-load-test/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loa...

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 29, 2008, 6:57:59 AM10/29/08
to smart-loa...@smartitengineering.com
Author: imyousuf
Date: Wed Oct 29 03:54:13 2008
New Revision: 138

Modified:

trunk/smart-load-test/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/management/AbstracltTestCaseBatchCreator.java

Log:
Batch Listeners are made order sensitive

Previously batch listeners were not order sensitive, but it was required
that the engine's batch listener is fired at first and to ensure that we
needed to preserve the order of insertion and thus changed the
implementation
of set to LinkedHashSet.

Signed-off-by: Imran M Yousuf <imyo...@smartitengineering.com>

Modified:
trunk/smart-load-test/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/management/AbstracltTestCaseBatchCreator.java
==============================================================================
---
trunk/smart-load-test/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/management/AbstracltTestCaseBatchCreator.java
(original)
+++
trunk/smart-load-test/smart-load-test-engine-impl/src/main/java/com/smartitengineering/loadtest/engine/impl/management/AbstracltTestCaseBatchCreator.java
Wed Oct 29 03:54:13 2008
@@ -25,7 +25,7 @@
import com.smartitengineering.loadtest.engine.events.BatchEvent;
import com.smartitengineering.loadtest.engine.events.TestCaseBatchListener;
import
com.smartitengineering.loadtest.engine.management.TestCaseBatchCreator;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
@@ -49,7 +49,7 @@
protected AbstracltTestCaseBatchCreator() {
setNextBatchAvailable(false);
setInitialized(false);
- batchListeners = new HashSet<TestCaseBatchListener>();
+ batchListeners = new LinkedHashSet<TestCaseBatchListener>();
}

public void init(UnitTestInstance testInstance)

Reply all
Reply to author
Forward
0 new messages