public interface RestServer
Tests retrieve RestServer instance by calling com.atlassian.crowd.acceptance.tests.rest.RestServerImpl.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.
|
void before(Class testClass, String testName) throws Exception
testClass
- the class containing the currently ran testtestName
- the name of the test methodException
- if the server could not be restoredvoid after()
com.sun.jersey.api.client.Client decorateClient(com.sun.jersey.api.client.Client client)
client
- The client to decorateCopyright © 2019 Atlassian. All rights reserved.