Package org.nuxeo.jaxrs.test
Class HttpClientTestRule
- java.lang.Object
-
- org.nuxeo.jaxrs.test.HttpClientTestRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
@Deprecated(since="2023.13", forRemoval=true) public class HttpClientTestRule extends Object implements org.junit.rules.TestRule
Deprecated, for removal: This API element is subject to removal in a future version.since 2023.13, useHttpClientTestRule
instead- Since:
- 10.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpClientTestRule.Builder
Deprecated, for removal: This API element is subject to removal in a future version.The http client test rule builder.
-
Field Summary
Fields Modifier and Type Field Description static String
ADMINISTRATOR
Deprecated, for removal: This API element is subject to removal in a future version.protected com.sun.jersey.api.client.Client
client
Deprecated, for removal: This API element is subject to removal in a future version.protected com.sun.jersey.api.client.WebResource
service
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
Deprecated, for removal: This API element is subject to removal in a future version.CloseableClientResponse
delete(String path)
Deprecated, for removal: This API element is subject to removal in a future version.protected CloseableClientResponse
execute(String path, Function<com.sun.jersey.api.client.WebResource.Builder,com.sun.jersey.api.client.ClientResponse> invoker)
Deprecated, for removal: This API element is subject to removal in a future version.void
finished()
Deprecated, for removal: This API element is subject to removal in a future version.CloseableClientResponse
get(String path)
Deprecated, for removal: This API element is subject to removal in a future version.CloseableClientResponse
post(String path, Object data)
Deprecated, for removal: This API element is subject to removal in a future version.CloseableClientResponse
put(String path, Object data)
Deprecated, for removal: This API element is subject to removal in a future version.void
starting()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Field Detail
-
ADMINISTRATOR
public static final String ADMINISTRATOR
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
client
protected com.sun.jersey.api.client.Client client
Deprecated, for removal: This API element is subject to removal in a future version.
-
service
protected com.sun.jersey.api.client.WebResource service
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
apply
in interfaceorg.junit.rules.TestRule
-
starting
public void starting()
Deprecated, for removal: This API element is subject to removal in a future version.
-
finished
public void finished()
Deprecated, for removal: This API element is subject to removal in a future version.
-
get
public CloseableClientResponse get(String path)
Deprecated, for removal: This API element is subject to removal in a future version.
-
post
public CloseableClientResponse post(String path, Object data)
Deprecated, for removal: This API element is subject to removal in a future version.
-
put
public CloseableClientResponse put(String path, Object data)
Deprecated, for removal: This API element is subject to removal in a future version.
-
delete
public CloseableClientResponse delete(String path)
Deprecated, for removal: This API element is subject to removal in a future version.
-
execute
protected CloseableClientResponse execute(String path, Function<com.sun.jersey.api.client.WebResource.Builder,com.sun.jersey.api.client.ClientResponse> invoker)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-