@@ -68,9 +68,11 @@ public static WebArchive createDeployment() {
6868 }
6969
7070 /**
71- * Tests that a Rest Client interface method that returns Future<Response>
71+ * Tests that a Rest Client interface method that returns CompletionStage
7272 * is invoked asychronously - checking that the thread ID of the response
7373 * does not match the thread ID of the calling thread.
74+ *
75+ * @throws Exception - indicates test failure
7476 */
7577 @ Test
7678 public void testInterfaceMethodWithCompletionStageResponseReturnIsInvokedAsynchronously () throws Exception {
@@ -101,10 +103,12 @@ public void testInterfaceMethodWithCompletionStageResponseReturnIsInvokedAsynchr
101103 }
102104
103105 /**
104- * Tests that a Rest Client interface method that returns Future<X> (where X
105- * is some Object type other than Response) is invoked asychronously -
106- * checking that the thread ID of the response does not match the thread ID
107- * of the calling thread.
106+ * Tests that a Rest Client interface method that returns a CompletionStage
107+ * where it's parameterized type is some Object type other than Response) is
108+ * invoked asychronously - checking that the thread ID of the response does
109+ * not match the thread ID of the calling thread.
110+ *
111+ * @throws Exception - indicates test failure
108112 */
109113 @ Test
110114 public void testInterfaceMethodWithCompletionStageObjectReturnIsInvokedAsynchronously () throws Exception {
@@ -135,6 +139,8 @@ public void testInterfaceMethodWithCompletionStageObjectReturnIsInvokedAsynchron
135139 /**
136140 * Tests that the MP Rest Client implementation uses the specified
137141 * ExecutorService.
142+ *
143+ * @throws Exception - indicates test failure
138144 */
139145 @ Test
140146 public void testExecutorService () throws Exception {
@@ -181,6 +187,8 @@ public Thread newThread(Runnable r) {
181187 * on the calling thread. It uses an
182188 * <code>AsyncInvocationInterceptorFactory</code> provider to copy the
183189 * ThreadLocal value from the calling thread to the async thread.
190+ *
191+ * @throws Exception - indicates test failure
184192 */
185193 @ Test
186194 public void testAsyncInvocationInterceptorProvider () throws Exception {
@@ -218,7 +226,9 @@ public void testAsyncInvocationInterceptorProvider() throws Exception{
218226 /**
219227 * This test verifies that the <code>RestClientBuilder</code> implementation
220228 * will throw an <code>IllegalArgumentException</code> when a null value is
221- * passed to the <code>executorService<code> method.
229+ * passed to the <code>executorService</code> method.
230+ *
231+ * @throws IllegalArgumentException - expected when passing null
222232 */
223233 @ Test (expectedExceptions ={IllegalArgumentException .class })
224234 public void testNullExecutorServiceThrowsIllegalArgumentException () {
0 commit comments