Skip to content

Commit 7148a4b

Browse files
committed
working on distributed test automation - snapshot
1 parent 1eb3645 commit 7148a4b

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/net/sharksystem/ui/messenger/cli/SharkNetMessengerAppSupportingDistributedTesting.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ private void stageTests() {
148148
this.orchestratedTestsInLaunch.add(
149149
this.orchestratedTestsWaiting.get(testEnsemble.waitingTestIndex));
150150

151-
// TODO - does not work - why?
152-
this.orchestratedTestsWaiting.remove(testEnsemble.waitingTestIndex);
151+
// we need an int - Integer would not work since it is interpreted as key object rather index value
152+
int index2Remove = testEnsemble.waitingTestIndex;
153+
this.orchestratedTestsWaiting.remove(index2Remove);
153154

154155
// make peers unavailable
155156
for(int i = 0; i < testEnsemble.peerIPAddresses.length; i++) {

tests/net/sharksystem/messenger/testScripts/CompilerTests.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import net.sharksystem.ui.messenger.cli.testlanguage.TestLanguageCompilerException;
55
import org.junit.jupiter.api.Test;
66

7+
import java.util.ArrayList;
8+
import java.util.List;
79
import java.util.Map;
810

911
public class CompilerTests {
@@ -18,4 +20,13 @@ public void sentenceTest1() throws TestLanguageCompilerException {
1820
System.out.println(scripts.get(peerName) + "\n");
1921
}
2022
}
23+
24+
@Test
25+
public void x1() throws TestLanguageCompilerException {
26+
List<String> strings = new ArrayList<>();
27+
strings.add("hi");
28+
strings.remove(0);
29+
30+
int i = 42;
31+
}
2132
}

0 commit comments

Comments
 (0)