|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RestServer
This interface represents a server which offers a Crowd REST service.
Tests retrieve RestServer instance by calling com.atlassian.crowd.acceptance.tests.rest.RestServerImpl.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()
|
Method Detail |
---|
void before() throws Exception
Exception
- if the server could not be restoredvoid after()
void intendToModifyData()
String getHost()
int getPort()
String getContextPath()
com.sun.jersey.api.client.Client decorateClient(com.sun.jersey.api.client.Client client)
client
- The client to decorate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |