use of fish.payara.ejb.http.protocol.LookupRequest in project Payara by payara.
the class EjbOverHttpResourceTest method lookupExpectSuccess.
private static LookupResponse lookupExpectSuccess(String mediaType, String jndiName) {
Entity<LookupRequest> entity = lookupBody(mediaType, jndiName);
try (Response response = target.path("jndi/lookup").request(mediaType).buildPost(entity).invoke()) {
assertNoError(response, Status.CREATED);
assertThat(response.getLocation().getPath(), endsWith("/jndi/invoke"));
return response.readEntity(LookupResponse.class);
}
}
Aggregations