|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RestServerImpl> com.atlassian.crowd.acceptance.tests.rest.RestServerImpl
public enum RestServerImpl
Enum Constant Summary | |
---|---|
INSTANCE
|
Method Summary | |
---|---|
void |
after()
This method is called after each test is run, and it should free resources. |
void |
before()
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. |
String |
getContextPath()
Returns the context path of the server. |
String |
getHost()
Returns the host name of the server. |
int |
getPort()
Returns the port of the server. |
void |
intendToModifyData()
|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RestServerImpl INSTANCE
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic void before() throws Exception
RestServer
before
in interface RestServer
Exception
- if the server could not be restoredpublic void after()
RestServer
after
in interface RestServer
public void intendToModifyData()
intendToModifyData
in interface RestServer
public String getHost()
RestServer
getHost
in interface RestServer
public int getPort()
RestServer
getPort
in interface RestServer
public String getContextPath()
RestServer
getContextPath
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 decorate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |