Skip to content

Commit a3e4eb8

Browse files
committed
1.2.0, build, documentation
1 parent 6b70007 commit a3e4eb8

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414

1515
import org.junit.jupiter.api.Test;
1616

17-
import java.io.IOException;
1817
import java.util.List;
1918

2019
import static nats.io.NatsRunnerUtils.createClusterInserts;
2120

2221
public class NatsClusterTest extends TestBase {
2322

2423
@Test
25-
public void testCreateCluster() throws IOException, InterruptedException {
24+
public void testCreateCluster() throws Exception {
2625
List<ClusterInsert> clusterInserts = createClusterInserts();
2726
ClusterInsert ci1 = clusterInserts.get(0);
2827
ClusterInsert ci2 = clusterInserts.get(1);

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
public class NatsServerRunnerTest extends TestBase {
2525

2626
@Test
27-
public void testWithoutConfigDefault() throws IOException, InterruptedException {
27+
public void testWithoutConfigDefault() throws Exception {
2828
try (NatsServerRunner runner = new NatsServerRunner()) {
2929
validateBasics(runner, false, false);
3030
}
3131
}
3232

3333
@Test
34-
public void testWithoutConfigDefaultBuilder() throws IOException, InterruptedException {
34+
public void testWithoutConfigDefaultBuilder() throws Exception {
3535
try (NatsServerRunner runner = NatsServerRunner.builder().build()) {
3636
validateBasics(runner, false, false);
3737
}
@@ -48,15 +48,15 @@ private static Stream<Arguments> withoutDebugAndJetStreamArgs() {
4848

4949
@ParameterizedTest
5050
@MethodSource("withoutDebugAndJetStreamArgs")
51-
public void testWithoutDebugAndJetStream(boolean debug, boolean jetStream) throws IOException, InterruptedException {
51+
public void testWithoutDebugAndJetStream(boolean debug, boolean jetStream) throws Exception {
5252
try (NatsServerRunner runner = new NatsServerRunner(debug, jetStream)) {
5353
validateBasics(runner, debug, jetStream);
5454
}
5555
}
5656

5757
@ParameterizedTest
5858
@MethodSource("withoutDebugAndJetStreamArgs")
59-
public void testWithoutDebugAndJetStreamBuilder(boolean debug, boolean jetStream) throws IOException, InterruptedException {
59+
public void testWithoutDebugAndJetStreamBuilder(boolean debug, boolean jetStream) throws Exception {
6060
try (NatsServerRunner runner = NatsServerRunner.builder()
6161
.debug(debug)
6262
.jetstream(jetStream)
@@ -77,14 +77,14 @@ private void _testCustoms(NatsServerRunner runner) throws IOException {
7777
}
7878

7979
@Test
80-
public void testCustoms() throws IOException, InterruptedException {
80+
public void testCustoms() throws Exception {
8181
try (NatsServerRunner runner = new NatsServerRunner(-1, false, false, null, CUSTOMS_CONFIG_INSERTS, CUSTOMS_ARGS)) {
8282
_testCustoms(runner);
8383
}
8484
}
8585

8686
@Test
87-
public void testCustomsBuilder() throws IOException, InterruptedException {
87+
public void testCustomsBuilder() throws Exception {
8888
try (NatsServerRunner runner = NatsServerRunner.builder()
8989
.configInserts(CUSTOMS_CONFIG_INSERTS)
9090
.customArgs(CUSTOMS_ARGS)
@@ -114,7 +114,7 @@ private void _testWithConfig(String configFile, boolean checkConnect, String[] c
114114

115115
@ParameterizedTest
116116
@MethodSource("withConfigArgs")
117-
public void testWithConfig(String configFile, boolean checkConnect) throws IOException, InterruptedException {
117+
public void testWithConfig(String configFile, boolean checkConnect) throws Exception {
118118
String[] configInserts = { "# custom insert this comment " + configFile };
119119
try (NatsServerRunner runner = new NatsServerRunner(SOURCE_CONFIG_FILE_PATH + configFile, configInserts, -1, false)) {
120120
_testWithConfig(configFile, checkConnect, configInserts, runner);
@@ -123,7 +123,7 @@ public void testWithConfig(String configFile, boolean checkConnect) throws IOExc
123123

124124
@ParameterizedTest
125125
@MethodSource("withConfigArgs")
126-
public void testWithConfigBuilder(String configFile, boolean checkConnect) throws IOException, InterruptedException {
126+
public void testWithConfigBuilder(String configFile, boolean checkConnect) throws Exception {
127127
String[] configInserts = { "# custom insert this comment " + configFile };
128128
try (NatsServerRunner runner = NatsServerRunner.builder()
129129
.configFilePath(SOURCE_CONFIG_FILE_PATH + configFile)

0 commit comments

Comments
 (0)