Skip to content

Commit 848eea8

Browse files
authored
verifying env and setting path (#21)
1 parent f33d2b8 commit 848eea8

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

src/main/java/nats/io/ClusterInsert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import java.util.List;
1616

17-
class ClusterInsert {
17+
public class ClusterInsert {
1818
public int id;
1919
public int port;
2020
public int listen;

src/main/java/nats/io/NatsRunnerUtils.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static String getURIForPort(int port) {
4646

4747
/**
4848
* Set the path for the
49-
* @param serverPath
49+
* @param serverPath the fully qualified path of the server
5050
*/
5151
public static void setServerPath(String serverPath) {
5252
SERVER_PATH = serverPath;
@@ -169,12 +169,4 @@ private static List<ClusterInsert> finishCreateClusterInserts(String clusterName
169169
}
170170
return clusterInserts;
171171
}
172-
173-
public static void main(String[] args) throws IOException {
174-
List<ClusterInsert> clusterInserts = createClusterInserts(4);
175-
System.out.println(clusterInserts.get(0));
176-
System.out.println(clusterInserts.get(1));
177-
System.out.println(clusterInserts.get(2));
178-
System.out.println(clusterInserts.get(3));
179-
}
180172
}

src/test/java/nats/io/NatsClusterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import static nats.io.NatsRunnerUtils.createClusterInserts;
2121

22-
class NatsClusterTest extends TestBase {
22+
public class NatsClusterTest extends TestBase {
2323

2424
@Test
2525
public void testCreateCluster() throws IOException, InterruptedException {

src/test/java/nats/io/NatsServerRunnerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.util.Arrays;
2222
import java.util.stream.Stream;
2323

24-
class NatsServerRunnerTest extends TestBase {
24+
public class NatsServerRunnerTest extends TestBase {
2525

2626
@Test
2727
public void testWithoutConfigDefault() throws IOException, InterruptedException {

src/test/java/nats/io/TestBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import static org.junit.jupiter.api.Assertions.assertTrue;
3030
import static org.junit.platform.commons.util.CollectionUtils.toUnmodifiableList;
3131

32-
class TestBase {
32+
public class TestBase {
3333

3434
protected static final String SOURCE_CONFIG_FILE_PATH = "src/test/resources/";
3535

0 commit comments

Comments
 (0)