File tree Expand file tree Collapse file tree
src/net/sharksystem/ui/messenger/cli
tests/net/sharksystem/messenger/testScripts Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ++) {
Original file line number Diff line number Diff line change 44import net .sharksystem .ui .messenger .cli .testlanguage .TestLanguageCompilerException ;
55import org .junit .jupiter .api .Test ;
66
7+ import java .util .ArrayList ;
8+ import java .util .List ;
79import java .util .Map ;
810
911public 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}
You can’t perform that action at this time.
0 commit comments