X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-access-client%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fclient%2FConnectingClientConnectionTest.java;h=911f34996329ba44f7cb7937bfa1aa6816b4c0c7;hp=88e50e2f48f526f003f00bf2a48ea010bc22750d;hb=12fcdfe39aa26dcba7fd3bb4d4c68e3d02e65c51;hpb=d7c9a8ccfcb57f005490a226803d094289997ef9 diff --git a/opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ConnectingClientConnectionTest.java b/opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ConnectingClientConnectionTest.java index 88e50e2f48..911f349963 100644 --- a/opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ConnectingClientConnectionTest.java +++ b/opendaylight/md-sal/cds-access-client/src/test/java/org/opendaylight/controller/cluster/access/client/ConnectingClientConnectionTest.java @@ -221,14 +221,14 @@ public class ConnectingClientConnectionTest { } @Test - public void testRunTimeoutEmpty() throws NoProgressException { + public void testRunTimeoutEmpty() { Optional ret = queue.checkTimeout(ticker.read()); assertNotNull(ret); assertFalse(ret.isPresent()); } @Test - public void testRunTimeoutWithoutShift() throws NoProgressException { + public void testRunTimeoutWithoutShift() { queue.sendRequest(mockRequest, mockCallback); Optional ret = queue.checkTimeout(ticker.read()); assertNotNull(ret); @@ -236,7 +236,7 @@ public class ConnectingClientConnectionTest { } @Test - public void testRunTimeoutWithTimeoutLess() throws NoProgressException { + public void testRunTimeoutWithTimeoutLess() { queue.sendRequest(mockRequest, mockCallback); ticker.advance(AbstractClientConnection.DEFAULT_BACKEND_ALIVE_TIMEOUT_NANOS - 1); @@ -247,7 +247,7 @@ public class ConnectingClientConnectionTest { } @Test - public void testRunTimeoutWithTimeoutExact() throws NoProgressException { + public void testRunTimeoutWithTimeoutExact() { setupBackend(); queue.sendRequest(mockRequest, mockCallback); @@ -259,7 +259,7 @@ public class ConnectingClientConnectionTest { } @Test - public void testRunTimeoutWithTimeoutMore() throws NoProgressException { + public void testRunTimeoutWithTimeoutMore() { setupBackend(); queue.sendRequest(mockRequest, mockCallback); @@ -271,7 +271,7 @@ public class ConnectingClientConnectionTest { } @SuppressWarnings({ "rawtypes", "unchecked" }) - public void testRunTimeoutWithoutProgressExact() throws NoProgressException { + public void testRunTimeoutWithoutProgressExact() { queue.sendRequest(mockRequest, mockCallback); ticker.advance(AbstractClientConnection.DEFAULT_NO_PROGRESS_TIMEOUT_NANOS); @@ -282,7 +282,7 @@ public class ConnectingClientConnectionTest { } @SuppressWarnings({ "rawtypes", "unchecked" }) - public void testRunTimeoutWithoutProgressMore() throws NoProgressException { + public void testRunTimeoutWithoutProgressMore() { queue.sendRequest(mockRequest, mockCallback); ticker.advance(AbstractClientConnection.DEFAULT_NO_PROGRESS_TIMEOUT_NANOS + 1); @@ -293,7 +293,7 @@ public class ConnectingClientConnectionTest { } @Test - public void testRunTimeoutEmptyWithoutProgressExact() throws NoProgressException { + public void testRunTimeoutEmptyWithoutProgressExact() { ticker.advance(AbstractClientConnection.DEFAULT_NO_PROGRESS_TIMEOUT_NANOS); // No problem @@ -303,7 +303,7 @@ public class ConnectingClientConnectionTest { } @Test - public void testRunTimeoutEmptyWithoutProgressMore() throws NoProgressException { + public void testRunTimeoutEmptyWithoutProgressMore() { ticker.advance(AbstractClientConnection.DEFAULT_NO_PROGRESS_TIMEOUT_NANOS + 1); // No problem @@ -344,7 +344,7 @@ public class ConnectingClientConnectionTest { } @Test - public void testProgressRecord() throws NoProgressException { + public void testProgressRecord() { setupBackend(); queue.sendRequest(mockRequest, mockCallback);