Skip to content

Commit 66f09d4

Browse files
committed
move ScriptRunner to src. Will use it not only for local but also distributed tests
1 parent 7ff0157 commit 66f09d4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/net/sharksystem/messenger/testScripts/ScriptsRunner.java renamed to src/net/sharksystem/ui/messenger/cli/commands/testing/ScriptsRunner.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
package net.sharksystem.messenger.testScripts;
1+
package net.sharksystem.ui.messenger.cli.commands.testing;
22

33
import net.sharksystem.SharkException;
44
import net.sharksystem.hub.peerside.ASAPHubManager;
55
import net.sharksystem.ui.messenger.cli.ProductionUI;
6-
import org.junit.jupiter.api.Test;
76

87
import java.io.*;
98
import java.lang.reflect.Field;
@@ -12,6 +11,9 @@
1211
import java.util.List;
1312
import java.util.Map;
1413

14+
/**
15+
* Run a script with in a fresh CLI thread.
16+
*/
1517
public class ScriptsRunner {
1618
// assume scripts come as member
1719
private String getScript(String scriptName) throws NoSuchFieldException, IllegalAccessException {
@@ -35,7 +37,6 @@ private String getScript(String scriptName) throws NoSuchFieldException, Illegal
3537
// Hub
3638
// Hub3_1k, Hub3_100k, Hub3_100M, HubStalling_1s, HubStalling_1min, HubStalling_10min
3739

38-
@Test
3940
public void runScripts() {
4041
String scriptName = null;
4142
for(String testCase : version1Tests.keySet()) {

0 commit comments

Comments
 (0)