public class Resource extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Resource.Builder<B extends Resource.Builder<B>>
A
Resource builder which enables configuration of a Jersey testing environment. |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
static ResourceExtension.Builder |
builder()
Creates a new Jersey testing environment builder for
ResourceExtension |
javax.ws.rs.client.Client |
client()
Returns the pre-configured
Client for this test. |
Consumer<org.glassfish.jersey.client.ClientConfig> |
getClientConfigurator() |
org.glassfish.jersey.test.JerseyTest |
getJerseyTest()
Returns the underlying
JerseyTest. |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
javax.validation.Validator |
getValidator() |
javax.ws.rs.client.WebTarget |
target(String path)
Creates a web target to be sent to the resource under testing.
|
public static ResourceExtension.Builder builder()
ResourceExtensionResourceExtension.Builderpublic javax.validation.Validator getValidator()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public Consumer<org.glassfish.jersey.client.ClientConfig> getClientConfigurator()
public javax.ws.rs.client.WebTarget target(String path)
path - relative path (from tested application base URI) this web target should point to.public javax.ws.rs.client.Client client()
Client for this test. For sending
requests prefer target(String)JerseyTest configured Clientpublic org.glassfish.jersey.test.JerseyTest getJerseyTest()
JerseyTest. For sending requests prefer
target(String).JerseyTestCopyright © 2020. All rights reserved.