aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java')
-rw-r--r--common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java b/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java
index 0e97255..b59f528 100644
--- a/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java
+++ b/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java
@@ -225,6 +225,11 @@ public class CompoundTest extends Test implements Cloneable {
@Override
public CompoundTest clone() throws CloneNotSupportedException {
- return (CompoundTest) super.clone();
+ CompoundTest clone = (CompoundTest) super.clone();
+ clone.tests = new Test[tests.length];
+ for (int i = 0; i < tests.length; i++) {
+ clone.tests[i] = tests[i].clone();
+ }
+ return clone;
}
}