Skip to content

Commit 7b0a50c

Browse files
committed
new constructor, to handle issue in External Driver jar location
1 parent c466309 commit 7b0a50c

17 files changed

Lines changed: 103 additions & 17 deletions

File tree

jdk_11_gradle/em/external/graphql/patio-api/src/main/java/em/external/patio/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static void main(String[] args) {
5858

5959
private final int timeoutSeconds;
6060
private final int sutPort;
61-
private final String jarLocation;
61+
private String jarLocation;
6262
private Connection connection;
6363

6464
private static final GenericContainer postgres = new GenericContainer("postgres:9")
@@ -72,6 +72,11 @@ public ExternalEvoMasterController(){
7272
this(40100, "../core/target", 12345, 120, "java");
7373
}
7474

75+
public ExternalEvoMasterController(String jarLocation) {
76+
this();
77+
this.jarLocation = jarLocation;
78+
}
79+
7580
public ExternalEvoMasterController(
7681
int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command
7782
) {

jdk_11_maven/em/external/graphql/timbuctoo/src/main/java/em/external/nl/knaw/huygens/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static void main(String[] args) {
5757

5858
private final int timeoutSeconds;
5959
private final int sutPort;
60-
private final String jarLocation;
60+
private String jarLocation;
6161
private final String tmpFolder;
6262
private final String CONFIG_FILE = "timbuctoo_evomaster.yaml";
6363

@@ -71,6 +71,11 @@ public ExternalEvoMasterController(){
7171
this(40100, "../api/target", 12345, 120, "java");
7272
}
7373

74+
public ExternalEvoMasterController(String jarLocation) {
75+
this();
76+
this.jarLocation = jarLocation;
77+
}
78+
7479
public ExternalEvoMasterController(int controllerPort,
7580
String jarLocation,
7681
int sutPort,

jdk_11_maven/em/external/rest/cwa-verification/src/main/java/em/external/app/coronawarn/verification/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,19 @@ public static void main(String[] args) {
5555
private final int timeoutSeconds;
5656
private final int sutPort;
5757
private final int dbPort;
58-
private final String jarLocation;
58+
private String jarLocation;
5959
private Connection connection;
6060
private Server h2;
6161

6262
public ExternalEvoMasterController() {
6363
this(40100, "../core/target", 12345, 120, "java");
6464
}
6565

66+
public ExternalEvoMasterController(String jarLocation) {
67+
this();
68+
this.jarLocation = jarLocation;
69+
}
70+
6671
public ExternalEvoMasterController(int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command) {
6772
this.sutPort = sutPort;
6873
this.dbPort = sutPort + 1;

jdk_8_maven/em/external/graphql/graphql-ncs/src/main/java/em/external/org/graphqlncs/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,17 @@ public static void main(String[] args) {
4949

5050
private final int timeoutSeconds;
5151
private final int sutPort;
52-
private final String jarLocation;
52+
private String jarLocation;
5353

5454
public ExternalEvoMasterController(){
5555
this(40100, "../core/target", 12345, 120, "java");
5656
}
5757

58+
public ExternalEvoMasterController(String jarLocation) {
59+
this();
60+
this.jarLocation = jarLocation;
61+
}
62+
5863
public ExternalEvoMasterController(
5964
int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command
6065
) {

jdk_8_maven/em/external/graphql/graphql-scs/src/main/java/em/external/org/graphqlscs/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,17 @@ public static void main(String[] args) {
4949

5050
private final int timeoutSeconds;
5151
private final int sutPort;
52-
private final String jarLocation;
52+
private String jarLocation;
5353

5454
public ExternalEvoMasterController(){
5555
this(40100, "../core/target", 12345, 120, "java");
5656
}
5757

58+
public ExternalEvoMasterController(String jarLocation) {
59+
this();
60+
this.jarLocation = jarLocation;
61+
}
62+
5863
public ExternalEvoMasterController(
5964
int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command
6065
) {

jdk_8_maven/em/external/graphql/spring-petclinic-graphql/src/main/java/em/external/org/springframework/samples/petclinic/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static void main(String[] args) {
5757

5858
private final int timeoutSeconds;
5959
private final int sutPort;
60-
private final String jarLocation;
60+
private String jarLocation;
6161
private Connection connection;
6262

6363
private static final GenericContainer postgres = new GenericContainer("postgres:9")
@@ -70,6 +70,11 @@ public ExternalEvoMasterController(){
7070
this(40100, "../core/target", 12345, 120, "java");
7171
}
7272

73+
public ExternalEvoMasterController(String jarLocation) {
74+
this();
75+
this.jarLocation = jarLocation;
76+
}
77+
7378
public ExternalEvoMasterController(
7479
int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command
7580
) {

jdk_8_maven/em/external/rest/catwatch/src/main/java/em/external/org/zalando/ExternalEvoMasterController.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,20 @@ public static void main(String[] args) {
5656
private final int timeoutSeconds;
5757
private final int sutPort;
5858
private final int dbPort;
59-
private final String jarLocation;
59+
private String jarLocation;
6060
private Connection connection;
6161
private Server h2;
6262

63+
6364
public ExternalEvoMasterController() {
6465
this(40100, "../core/target", 12345, 120, "java");
6566
}
6667

68+
public ExternalEvoMasterController(String jarLocation) {
69+
this();
70+
this.jarLocation = jarLocation;
71+
}
72+
6773
public ExternalEvoMasterController(int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command) {
6874
this.sutPort = sutPort;
6975
this.dbPort = sutPort + 1;

jdk_8_maven/em/external/rest/features-service/src/main/java/em/external/org/javiermf/features/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,19 @@ public static void main(String[] args) {
5454
private final int timeoutSeconds;
5555
private final int sutPort;
5656
private final int dbPort;
57-
private final String jarLocation;
57+
private String jarLocation;
5858
private Connection connection;
5959
private Server h2;
6060

6161
public ExternalEvoMasterController() {
6262
this(40100, "../core/target", 12345, 120, "java");
6363
}
6464

65+
public ExternalEvoMasterController(String jarLocation) {
66+
this();
67+
this.jarLocation = jarLocation;
68+
}
69+
6570
public ExternalEvoMasterController(int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command) {
6671
this.sutPort = sutPort;
6772
this.dbPort = sutPort + 1;

jdk_8_maven/em/external/rest/ind0/src/main/java/em/external/org/ind0/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static void main(String[] args) {
6666

6767
private final int timeoutSeconds;
6868
private final int sutPort;
69-
private final String jarLocation;
69+
private String jarLocation;
7070
private final String packagesToInstrument;
7171
private Connection connection;
7272

@@ -79,6 +79,11 @@ public ExternalEvoMasterController(){
7979
this(40100, SUT_LOCATION_IND0, 12345, 120, "java", SUT_PACKAGE_IND0);
8080
}
8181

82+
public ExternalEvoMasterController(String jarLocation) {
83+
this();
84+
this.jarLocation = jarLocation;
85+
}
86+
8287
public ExternalEvoMasterController(
8388
int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command,
8489
String packagesToInstrument) {

jdk_8_maven/em/external/rest/languagetool/src/main/java/em/external/org/languagetool/ExternalEvoMasterController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@ public static void main(String[] args) {
5454

5555
private final int timeoutSeconds;
5656
private final int sutPort;
57-
private final String jarLocation;
57+
private String jarLocation;
5858

5959
public ExternalEvoMasterController() {
6060
this(40100, "../core/target", 12345, 120, "java");
6161
}
6262

63+
public ExternalEvoMasterController(String jarLocation) {
64+
this();
65+
this.jarLocation = jarLocation;
66+
}
67+
6368
public ExternalEvoMasterController(int controllerPort, String jarLocation, int sutPort, int timeoutSeconds, String command) {
6469
this.sutPort = sutPort;
6570
this.jarLocation = jarLocation;

0 commit comments

Comments
 (0)