Skip to content

Commit

Permalink
NO ()
Browse files Browse the repository at this point in the history
  • Loading branch information
marci4 committed Jan 1, 2025
1 parent f6d97ea commit c98972b
Show file tree
Hide file tree
Showing 20 changed files with 74 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class ConnectBlockingTest {

@Test()
@Test
@Timeout(1000)
public void test_ConnectBlockingCleanup() throws Throwable {

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/java_websocket/issues/Issue1142Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class Issue1142Test {



@Test()
@Test
@Timeout(4000)
public void testWithoutSSLSession()
throws IOException, URISyntaxException, InterruptedException {
Expand Down Expand Up @@ -66,7 +66,7 @@ public void onError(Exception ex) {
server.stop();
}

@Test()
@Test
@Timeout(4000)
public void testWithSSLSession()
throws IOException, URISyntaxException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException, UnrecoverableKeyException, CertificateException, InterruptedException {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/java_websocket/issues/Issue1160Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void onError(Exception ex) {
}


@Test()
@Test
@Timeout(5000)
public void nonFatalErrorShallBeHandledByServer() throws Exception {
final AtomicInteger isServerOnErrorCalledCounter = new AtomicInteger(0);
Expand Down Expand Up @@ -108,7 +108,7 @@ public void onStart() {
server.stop();
}

@Test()
@Test
@Timeout(5000)
public void fatalErrorShallNotBeHandledByServer() throws Exception {
int port = SocketUtil.getAvailablePort();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue1203Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Issue1203Test {
private final CountDownLatch countServerDownLatch = new CountDownLatch(1);
private final CountDownLatch countClientDownLatch = new CountDownLatch(1);
boolean isClosedCalled = false;
@Test()
@Test
@Timeout(50000)
public void testIssue() throws Exception {
int port = SocketUtil.getAvailablePort();
Expand Down
14 changes: 7 additions & 7 deletions src/test/java/org/java_websocket/issues/Issue598Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,25 +190,25 @@ public void onStart() {
server.stop();
}

@Test()
@Test
@Timeout(2000)
public void runBelowLimitBytebuffer() throws Exception {
runTestScenario(0);
}

@Test()
@Test
@Timeout(2000)
public void runBelowSplitLimitBytebuffer() throws Exception {
runTestScenario(1);
}

@Test()
@Test
@Timeout(2000)
public void runBelowLimitString() throws Exception {
runTestScenario(2);
}

@Test()
@Test
@Timeout(2000)
public void runBelowSplitLimitString() throws Exception {
runTestScenario(3);
Expand All @@ -220,19 +220,19 @@ public void runAboveLimitBytebuffer() throws Exception {
runTestScenario(4);
}

@Test()
@Test
@Timeout(2000)
public void runAboveSplitLimitBytebuffer() throws Exception {
runTestScenario(5);
}

@Test()
@Test
@Timeout(2000)
public void runAboveLimitString() throws Exception {
runTestScenario(6);
}

@Test()
@Test
@Timeout(2000)
public void runAboveSplitLimitString() throws Exception {
runTestScenario(7);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue661Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Issue661Test {
private boolean wasError = false;
private boolean wasBindException = false;

@Test()
@Test
@Timeout(2000)
public void testIssue() throws Exception {
int port = SocketUtil.getAvailablePort();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue713Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void onStart() {
}
}

@Test()
@Test
@Timeout(2000)
public void testIssue() throws Exception {
final int port = SocketUtil.getAvailablePort();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue732Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Issue732Test {

private CountDownLatch countServerDownLatch = new CountDownLatch(1);

@Test()
@Test
@Timeout(2000)
public void testIssue() throws Exception {
int port = SocketUtil.getAvailablePort();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue764Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class Issue764Test {
private CountDownLatch countClientDownLatch = new CountDownLatch(2);
private CountDownLatch countServerDownLatch = new CountDownLatch(1);

@Test()
@Test
@Timeout(2000)
public void testIssue()
throws IOException, URISyntaxException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException, UnrecoverableKeyException, CertificateException, InterruptedException {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue811Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class Issue811Test {

private CountDownLatch countServerDownLatch = new CountDownLatch(1);

@Test()
@Test
@Timeout(2000)
public void testSetConnectionLostTimeout() throws IOException, InterruptedException {
final MyWebSocketServer server = new MyWebSocketServer(
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue825Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
public class Issue825Test {


@Test()
@Test
@Timeout(15000)
public void testIssue()
throws IOException, URISyntaxException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException, UnrecoverableKeyException, CertificateException, InterruptedException {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue834Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class Issue834Test {

@Test()
@Test
@Timeout(1000)
public void testNoNewThreads() throws InterruptedException {

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue855Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Issue855Test {
CountDownLatch countServerDownLatch = new CountDownLatch(1);
CountDownLatch countDownLatch = new CountDownLatch(1);

@Test()
@Test
@Timeout(2000)
public void testIssue() throws Exception {
int port = SocketUtil.getAvailablePort();
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/java_websocket/issues/Issue890Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
public class Issue890Test {


@Test()
@Test
@Timeout(4000)
public void testWithSSLSession()
throws IOException, URISyntaxException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException, UnrecoverableKeyException, CertificateException, InterruptedException {
Expand Down Expand Up @@ -92,7 +92,7 @@ public void onError(Exception ex) {
assertNotNull(testResult.sslSession);
}

@Test()
@Test
@Timeout(4000)
public void testWithOutSSLSession()
throws IOException, URISyntaxException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException, UnrecoverableKeyException, CertificateException, InterruptedException {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue900Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class Issue900Test {
CountDownLatch serverStartLatch = new CountDownLatch(1);
CountDownLatch closeCalledLatch = new CountDownLatch(1);

@Test()
@Test
@Timeout(2000)
public void testIssue() throws Exception {
int port = SocketUtil.getAvailablePort();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/java_websocket/issues/Issue962Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public Socket createSocket(InetAddress ia, int i, InetAddress ia1, int i1) throw

}

@Test()
@Test
@Timeout(2000)
public void testIssue() throws IOException, URISyntaxException, InterruptedException {
int port = SocketUtil.getAvailablePort();
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/org/java_websocket/issues/Issue997Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

public class Issue997Test {

@Test()
@Test
@Timeout(2000)
public void test_localServer_ServerLocalhost_Client127_CheckActive()
throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException, URISyntaxException, InterruptedException {
Expand All @@ -69,7 +69,7 @@ public void test_localServer_ServerLocalhost_Client127_CheckActive()
assertTrue(client.onSSLError, "client has caught a SSLHandshakeException");
}

@Test()
@Test
@Timeout(2000)
public void test_localServer_ServerLocalhost_Client127_CheckInactive()
throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException, URISyntaxException, InterruptedException {
Expand All @@ -79,7 +79,7 @@ public void test_localServer_ServerLocalhost_Client127_CheckInactive()
assertFalse(client.onSSLError, "client has not caught a SSLHandshakeException");
}

@Test()
@Test
@Timeout(2000)
public void test_localServer_ServerLocalhost_Client127_CheckDefault()
throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException, URISyntaxException, InterruptedException {
Expand All @@ -89,7 +89,7 @@ public void test_localServer_ServerLocalhost_Client127_CheckDefault()
assertTrue(client.onSSLError, "client has caught a SSLHandshakeException");
}

@Test()
@Test
@Timeout(2000)
public void test_localServer_ServerLocalhost_ClientLocalhost_CheckActive()
throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException, URISyntaxException, InterruptedException {
Expand All @@ -100,7 +100,7 @@ public void test_localServer_ServerLocalhost_ClientLocalhost_CheckActive()
assertFalse(client.onSSLError, "client has not caught a SSLHandshakeException");
}

@Test()
@Test
@Timeout(2000)
public void test_localServer_ServerLocalhost_ClientLocalhost_CheckInactive()
throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException, URISyntaxException, InterruptedException {
Expand All @@ -110,7 +110,7 @@ public void test_localServer_ServerLocalhost_ClientLocalhost_CheckInactive()
assertFalse(client.onSSLError, "client has not caught a SSLHandshakeException");
}

@Test()
@Test
@Timeout(2000)
public void test_localServer_ServerLocalhost_ClientLocalhost_CheckDefault()
throws CertificateException, UnrecoverableKeyException, NoSuchAlgorithmException, KeyManagementException, KeyStoreException, IOException, URISyntaxException, InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,73 +150,73 @@ public void cleanUp() throws IOException {
}
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase0() throws Exception {
testHandshakeRejection(0);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase1() throws Exception {
testHandshakeRejection(1);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase2() throws Exception {
testHandshakeRejection(2);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase3() throws Exception {
testHandshakeRejection(3);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase4() throws Exception {
testHandshakeRejection(4);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase5() throws Exception {
testHandshakeRejection(5);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase6() throws Exception {
testHandshakeRejection(6);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase7() throws Exception {
testHandshakeRejection(7);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase8() throws Exception {
testHandshakeRejection(8);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase9() throws Exception {
testHandshakeRejection(9);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase10() throws Exception {
testHandshakeRejection(10);
}

@Test()
@Test
@Timeout(5000)
public void testHandshakeRejectionTestCase11() throws Exception {
testHandshakeRejection(11);
Expand Down
Loading

0 comments on commit c98972b

Please sign in to comment.