summaryrefslogtreecommitdiffstats
path: root/vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java
diff options
context:
space:
mode:
authorMichal Cmarada <mcmarada@cisco.com>2019-04-11 04:18:16 -0400
committerMichal Cmarada <mcmarada@cisco.com>2019-04-11 04:18:16 -0400
commit37039138afcddedb1af4035aae5fb6c603c4c4e1 (patch)
tree50764c40df951b4e7bd4afa027ec86c346ad4075 /vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java
parentd726d0f173544c8d0078c5f918b5d086f6e85f79 (diff)
HC2VPP-397: add support for java 11
- dependency updates - compilation error fixes - javadoc fixes Change-Id: Ic7371931b0728c888a39350a77c959121afb9786 Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
Diffstat (limited to 'vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java')
-rw-r--r--vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java b/vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java
index 45c28aace..88a012641 100644
--- a/vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java
+++ b/vpp-common/vpp-translate-test/src/main/java/io/fd/hc2vpp/common/test/read/JvppDumpExecutorTest.java
@@ -61,6 +61,11 @@ public abstract class JvppDumpExecutorTest<T extends EntityDumpExecutor<?, ?>> i
/**
* Return pre-stubed mock that will throw {@link TimeoutException},
* while performing desired method
+ *
+ * @return pre-stubed mock that will throw {@link TimeoutException}
+ * @throws InterruptedException when the operation is interrupted
+ * @throws ExecutionException when execution fails
+ * @throws TimeoutException when timeout occurs
*/
protected FutureJVppCore doThrowTimeoutExceptionWhen()
throws InterruptedException, ExecutionException, TimeoutException {
@@ -76,6 +81,8 @@ public abstract class JvppDumpExecutorTest<T extends EntityDumpExecutor<?, ?>> i
/**
* Return pre-stubed mock that will throw {@link VppInvocationException},
* while performing desired method
+ *
+ * @return pre-stubed mock that will throw {@link VppInvocationException}
*/
protected FutureJVppCore doThrowFailExceptionWhen() {
return doReturn(failedFuture()).when(api);
@@ -84,6 +91,9 @@ public abstract class JvppDumpExecutorTest<T extends EntityDumpExecutor<?, ?>> i
/**
* Return pre-stubed mock that will return specified result
* while performing desired method
+ *
+ * @param replyDump type of reply dump
+ * @return pre-stubed mock that will return specified result
*/
protected <U> FutureJVppCore doReturnResponseWhen(U replyDump) {
return doReturn(future(replyDump)).when(api);