use of jakarta.ws.rs.client.CompletionStageRxInvoker in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method traceWithResponseClassTest.
/*
* @testName: traceWithResponseClassTest
*
* @assertion_ids: JAXRS:JAVADOC:1157; JAXRS:JAVADOC:1162; JAXRS:JAVADOC:1187;
*
* @test_Strategy: Invoke HTTP trace method for the current request
*/
@Test
public void traceWithResponseClassTest() throws Fault {
CompletionStageRxInvoker rx = startRxInvokerForMethod("trace");
Future<Response> future = rx.trace(Response.class).toCompletableFuture();
checkFutureOkResponse(future);
}
use of jakarta.ws.rs.client.CompletionStageRxInvoker in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method optionsWithGenericTypeStringTest.
/*
* @testName: optionsWithGenericTypeStringTest
*
* @assertion_ids: JAXRS:JAVADOC:1149; JAXRS:JAVADOC:1162; JAXRS:JAVADOC:1179;
*
* @test_Strategy: Invoke HTTP options method for the current request
*/
@Test
public void optionsWithGenericTypeStringTest() throws Fault {
CompletionStageRxInvoker rx = startRxInvokerForMethod("options");
GenericType<String> generic = createGeneric(String.class);
Future<String> future = rx.options(generic).toCompletableFuture();
checkFutureString(future, "options");
}
use of jakarta.ws.rs.client.CompletionStageRxInvoker in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method getWithClassThrowsWebApplicationExceptionTest.
/*
* @testName: getWithClassThrowsWebApplicationExceptionTest
*
* @assertion_ids: JAXRS:JAVADOC:1138; JAXRS:JAVADOC:1162; JAXRS:JAVADOC:1168;
*
* @test_Strategy: WebApplicationException - in case the response status code
* of the response returned by the server is not successful and the specified
* response type is not Response.
*/
@Test
public void getWithClassThrowsWebApplicationExceptionTest() throws Fault {
CompletionStageRxInvoker rx = startRxInvokerForMethod("getnotok");
Future<String> future = rx.get(String.class).toCompletableFuture();
assertExceptionWithWebApplicationExceptionIsThrownAndLog(future);
}
use of jakarta.ws.rs.client.CompletionStageRxInvoker in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method deleteWithStringClassTest.
/*
* @testName: deleteWithStringClassTest
*
* @assertion_ids: JAXRS:JAVADOC:1135; JAXRS:JAVADOC:1162; JAXRS:JAVADOC:1164;
*
* @test_Strategy: Invoke HTTP DELETE method for the current request
*
*/
@Test
public void deleteWithStringClassTest() throws Fault {
CompletionStageRxInvoker rx = startRxInvokerForMethod("delete");
Future<String> future = rx.delete(String.class).toCompletableFuture();
checkFutureString(future, "delete");
}
use of jakarta.ws.rs.client.CompletionStageRxInvoker in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method putTest.
// ------------------------------------------------------------------
// ---------------------------PUT -----------------------------------
// ------------------------------------------------------------------
/*
* @testName: putTest
*
* @assertion_ids: JAXRS:JAVADOC:1153; JAXRS:JAVADOC:1162; JAXRS:JAVADOC:1183;
*
* @test_Strategy: Invoke HTTP PUT method for the current request
*/
@Test
public void putTest() throws Fault {
CompletionStageRxInvoker rx = startRxInvokerForMethod("put");
Entity<String> entity = Entity.entity("put", MediaType.WILDCARD_TYPE);
Future<Response> future = rx.put(entity).toCompletableFuture();
checkFutureOkResponse(future);
}
Aggregations