aboutsummaryrefslogtreecommitdiff
path: root/common/src/main
diff options
context:
space:
mode:
authorJ08nY2025-02-27 19:10:40 +0100
committerJ08nY2025-02-27 19:10:40 +0100
commita3883795d1261a9679e829355bd584ee1ca6e1ec (patch)
tree309df1eb45da952bd4d4760272259531509f5778 /common/src/main
parent51f118610d4d6b383b7b7b75201998b47ea5f972 (diff)
downloadECTester-a3883795d1261a9679e829355bd584ee1ca6e1ec.tar.gz
ECTester-a3883795d1261a9679e829355bd584ee1ca6e1ec.tar.zst
ECTester-a3883795d1261a9679e829355bd584ee1ca6e1ec.zip
Diffstat (limited to 'common/src/main')
-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;
}
}