ResourceExtension.@Deprecated public class ResourceTestRule extends Object implements org.junit.rules.TestRule
TestRule for testing Jersey resources.| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceTestRule.Builder
Deprecated.
A
ResourceTestRule builder which enables configuration of a Jersey testing environment. |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Deprecated.
|
static ResourceTestRule.Builder |
builder()
Deprecated.
Creates a new Jersey testing environment builder for
ResourceTestRule |
javax.ws.rs.client.Client |
client()
Deprecated.
Returns the pre-configured
Client for this test. |
Consumer<org.glassfish.jersey.client.ClientConfig> |
getClientConfigurator()
Deprecated.
|
org.glassfish.jersey.test.JerseyTest |
getJerseyTest()
Deprecated.
Returns the underlying
JerseyTest. |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Deprecated.
|
javax.validation.Validator |
getValidator()
Deprecated.
|
javax.ws.rs.client.WebTarget |
target(String path)
Deprecated.
Creates a web target to be sent to the resource under testing.
|
public static ResourceTestRule.Builder builder()
ResourceTestRuleResourceTestRule.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).JerseyTestpublic org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleCopyright © 2019. All rights reserved.