2424public 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