|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.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. |
java.lang.String |
getContextPath()
Returns the context path of the server. |
java.lang.String |
getHost()
Returns the host name of the server. |
int |
getPort()
Returns the port of the server. |
static RestServerImpl |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public void before()
throws java.lang.Exception
RestServer
before in interface RestServerjava.lang.Exception - if the server could not be restoredpublic void after()
RestServer
after in interface RestServerpublic java.lang.String getHost()
RestServer
getHost in interface RestServerpublic int getPort()
RestServer
getPort in interface RestServerpublic java.lang.String getContextPath()
RestServer
getContextPath in interface RestServerpublic com.sun.jersey.api.client.Client decorateClient(com.sun.jersey.api.client.Client client)
RestServer
decorateClient in interface RestServerclient - The client to decorate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||