Skip to content

Commit

Permalink
[RESTEASY-1885]
Browse files Browse the repository at this point in the history
CompletionStage HEAD invocation tests can be run after all.
  • Loading branch information
ronsigal authored and asoldano committed Jun 18, 2018
1 parent 51026d0 commit a2a3410
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Expand Up @@ -181,12 +181,11 @@ public void testDeleteThingList() throws Exception {
}

@Test
@Ignore // @TODO Fix: see RESTEASY-1885.
public void testHead() throws Exception {
CompletionStageRxInvoker invoker = client.target(generateURL("/head/string")).request().rx(CompletionStageRxInvoker.class);
CompletionStage<Response> completionStage = invoker.head();
Assert.assertEquals(null, completionStage.toCompletableFuture().get().readEntity(String.class));
//??
Response response = completionStage.toCompletableFuture().get();
Assert.assertEquals(200, response.getStatus());
}

@Test
Expand Down
Expand Up @@ -180,12 +180,10 @@ public void testDeleteThingList() throws Exception {
}

@Test
@Ignore // @TODO Fix: see RESTEASY-1885.
public void testHead() throws Exception {
Builder request = client.target(generateURL("/head/string")).request();
Response response = request.head();
Assert.assertEquals(null, response.readEntity(String.class));
//??
Assert.assertEquals(200, response.getStatus());
}

@Test
Expand Down
Expand Up @@ -181,12 +181,11 @@ public void testDeleteThingList() throws Exception {
}

@Test
@Ignore // @TODO Fix: see RESTEASY-1885.
public void testHead() throws Exception {
CompletionStageRxInvoker invoker = client.target(generateURL("/head/string")).request().rx(CompletionStageRxInvoker.class);
CompletionStage<Response> completionStage = invoker.head();
Assert.assertEquals(null, completionStage.toCompletableFuture().get().readEntity(String.class));
//??
Response response = completionStage.toCompletableFuture().get();
Assert.assertEquals(200, response.getStatus());
}

@Test
Expand Down

0 comments on commit a2a3410

Please sign in to comment.