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)