Modifier and Type | Class and Description |
---|---|
protected static class |
BaseTest.RequestType |
Modifier and Type | Field and Description |
---|---|
protected com.sun.jersey.api.client.Client |
client |
protected org.codehaus.jackson.map.ObjectMapper |
mapper |
protected com.sun.jersey.api.client.WebResource |
service |
CoreSession |
session |
Constructor and Description |
---|
BaseTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertEntityEqualsDoc(InputStream in,
DocumentModel doc) |
protected void |
assertNodeEqualsDoc(org.codehaus.jackson.JsonNode node,
DocumentModel note) |
void |
doBefore() |
protected void |
fetchInvalidations()
Fetch session invalidations.
|
protected String |
getErrorMessage(org.codehaus.jackson.JsonNode node) |
protected List<org.codehaus.jackson.JsonNode> |
getLogEntries(org.codehaus.jackson.JsonNode node) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path,
Map<String,String> headers) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path,
com.sun.jersey.multipart.MultiPart mp) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path,
com.sun.jersey.multipart.MultiPart mp,
Map<String,String> headers) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path,
String data) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path,
String data,
Map<String,String> headers) |
protected com.sun.jersey.api.client.ClientResponse |
getResponse(BaseTest.RequestType requestType,
String path,
String data,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams,
com.sun.jersey.multipart.MultiPart mp,
Map<String,String> headers) |
protected org.codehaus.jackson.JsonNode |
getResponseAsJson(BaseTest.RequestType responseType,
String url) |
protected org.codehaus.jackson.JsonNode |
getResponseAsJson(BaseTest.RequestType responseType,
String url,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
protected com.sun.jersey.api.client.WebResource |
getServiceFor(String user,
String password) |
protected org.codehaus.jackson.map.ObjectMapper mapper
protected com.sun.jersey.api.client.Client client
protected com.sun.jersey.api.client.WebResource service
@Inject public CoreSession session
public BaseTest()
protected com.sun.jersey.api.client.WebResource getServiceFor(String user, String password)
user
- password
- protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path)
protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path, Map<String,String> headers)
protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path, com.sun.jersey.multipart.MultiPart mp)
protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path, com.sun.jersey.multipart.MultiPart mp, Map<String,String> headers)
protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path, String data)
protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path, String data, Map<String,String> headers)
protected com.sun.jersey.api.client.ClientResponse getResponse(BaseTest.RequestType requestType, String path, String data, javax.ws.rs.core.MultivaluedMap<String,String> queryParams, com.sun.jersey.multipart.MultiPart mp, Map<String,String> headers)
protected org.codehaus.jackson.JsonNode getResponseAsJson(BaseTest.RequestType responseType, String url) throws IOException, org.codehaus.jackson.JsonProcessingException
IOException
org.codehaus.jackson.JsonProcessingException
protected org.codehaus.jackson.JsonNode getResponseAsJson(BaseTest.RequestType responseType, String url, javax.ws.rs.core.MultivaluedMap<String,String> queryParams) throws org.codehaus.jackson.JsonProcessingException, IOException
get
- string
- queryParamsForPage
- IOException
org.codehaus.jackson.JsonProcessingException
protected void fetchInvalidations()
protected void assertNodeEqualsDoc(org.codehaus.jackson.JsonNode node, DocumentModel note) throws Exception
Exception
protected List<org.codehaus.jackson.JsonNode> getLogEntries(org.codehaus.jackson.JsonNode node)
protected String getErrorMessage(org.codehaus.jackson.JsonNode node)
protected void assertEntityEqualsDoc(InputStream in, DocumentModel doc) throws Exception
Exception
Copyright © 2015 Nuxeo SA. All rights reserved.