Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/nats/io/ClusterInsert.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import java.util.List;

class ClusterInsert {
public class ClusterInsert {
public int id;
public int port;
public int listen;
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/nats/io/NatsRunnerUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static String getURIForPort(int port) {

/**
* Set the path for the
* @param serverPath
* @param serverPath the fully qualified path of the server
*/
public static void setServerPath(String serverPath) {
SERVER_PATH = serverPath;
Expand Down Expand Up @@ -169,12 +169,4 @@ private static List<ClusterInsert> finishCreateClusterInserts(String clusterName
}
return clusterInserts;
}

public static void main(String[] args) throws IOException {
List<ClusterInsert> clusterInserts = createClusterInserts(4);
System.out.println(clusterInserts.get(0));
System.out.println(clusterInserts.get(1));
System.out.println(clusterInserts.get(2));
System.out.println(clusterInserts.get(3));
}
}
2 changes: 1 addition & 1 deletion src/test/java/nats/io/NatsClusterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import static nats.io.NatsRunnerUtils.createClusterInserts;

class NatsClusterTest extends TestBase {
public class NatsClusterTest extends TestBase {

@Test
public void testCreateCluster() throws IOException, InterruptedException {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/nats/io/NatsServerRunnerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Arrays;
import java.util.stream.Stream;

class NatsServerRunnerTest extends TestBase {
public class NatsServerRunnerTest extends TestBase {

@Test
public void testWithoutConfigDefault() throws IOException, InterruptedException {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/nats/io/TestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.platform.commons.util.CollectionUtils.toUnmodifiableList;

class TestBase {
public class TestBase {

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

Expand Down