public enum RestServerImpl extends Enum<RestServerImpl> implements RestServer
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
after()
This method is called after each test is run, and it should free resources.
|
void |
before(Class testClass,
String testName)
This method is called before each test is run, and it should reset the server in a predictable state.
|
com.sun.jersey.api.client.Client |
decorateClient(com.sun.jersey.api.client.Client client)
Perform custom processing on the Jersey client, such as adding any necessary headers for multitenant tests.
|
static RestServerImpl |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestServerImpl[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestServerImpl INSTANCE
public static RestServerImpl[] values()
for (RestServerImpl c : RestServerImpl.values()) System.out.println(c);
public static RestServerImpl valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void before(Class testClass, String testName)
RestServer
before
in interface RestServer
testClass
- the class containing the currently ran testtestName
- the name of the test methodpublic void after()
RestServer
after
in interface RestServer
public com.sun.jersey.api.client.Client decorateClient(com.sun.jersey.api.client.Client client)
RestServer
decorateClient
in interface RestServer
client
- The client to decorateCopyright © 2021 Atlassian. All rights reserved.