Skip to content

Commit

Permalink
Update wildfly to 26.1.2.Final
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmckenzie committed Oct 19, 2022
1 parent f817956 commit a11f188
Show file tree
Hide file tree
Showing 6 changed files with 1,216 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example-context/example-service/example-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
</property>
</activation>
<properties>
<server.config>standalone-single.xml</server.config>
<server.config>standalone.xml</server.config>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,23 @@ public Querier(final Client client) {
}

public ApiResponse queryForRecipe(final String recipeId) {
final Response jaxrsResponse = client.target(RECIPES_RESOURCE_QUERY_URI + recipeId).request().accept(QUERY_RECIPE_MEDIA_TYPE).get();
return ApiResponse.from(jaxrsResponse);
try(final Response jaxrsResponse = client.target(RECIPES_RESOURCE_QUERY_URI + recipeId).request().accept(QUERY_RECIPE_MEDIA_TYPE).get()) {
return ApiResponse.from(jaxrsResponse);
}
}

public ApiResponse queryForOrder(final String orderId) {
final Response jaxrsResponse = client.target(ORDERS_RESOURCE_QUERY_URI + orderId).request().accept(QUERY_ORDER_MEDIA_TYPE).get();
return ApiResponse.from(jaxrsResponse);
try(final Response jaxrsResponse = client.target(ORDERS_RESOURCE_QUERY_URI + orderId).request().accept(QUERY_ORDER_MEDIA_TYPE).get()) {
return ApiResponse.from(jaxrsResponse);
}
}

public ApiResponse queryForIndex(final String recipeId) {
final Response jaxrsResponse = client.target(INDEXES_RESOURCE_QUERY_URI + recipeId).request().accept(QUERY_INDEX_MEDIA_TYPE).get();
return ApiResponse.from(jaxrsResponse);
try (final Response jaxrsResponse = client.target(INDEXES_RESOURCE_QUERY_URI + recipeId).request().accept(QUERY_INDEX_MEDIA_TYPE).get()) {
return ApiResponse.from(jaxrsResponse);
}
}

public ApiResponse recipesQueryResult() {
return recipesQueryResult(singletonList(new BasicNameValuePair("pagesize", "50")));
}
Expand Down
Loading

0 comments on commit a11f188

Please sign in to comment.