@ContextConfiguration(value="/spring-test/test-container.xml") public abstract class AbstractResourceIT extends Object
Abstract AbstractResourceIT class.
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.http.client.HttpClient |
client |
protected static String |
HOSTNAME |
protected org.slf4j.Logger |
logger |
protected static int |
SERVER_PORT |
protected static String |
serverAddress |
| Constructor and Description |
|---|
AbstractResourceIT() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest method) |
protected static String |
getRandomUniquePid()
Gets a random (but valid) pid for use in testing.
|
protected int |
getStatus(org.apache.http.client.methods.HttpUriRequest method) |
protected static org.apache.http.client.methods.HttpPost |
postDSMethod(String pid,
String ds,
String content) |
protected static org.apache.http.client.methods.HttpPost |
postObjMethod(String pid) |
protected static org.apache.http.client.methods.HttpPost |
postObjMethod(String pid,
String query) |
protected static org.apache.http.client.methods.HttpPut |
putDSMethod(String pid,
String ds,
String content) |
protected static org.apache.http.client.methods.HttpPut |
putObjMethod(String pid) |
void |
setLogger() |
protected org.slf4j.Logger logger
protected static final int SERVER_PORT
protected static final String HOSTNAME
protected static final String serverAddress
protected static org.apache.http.client.HttpClient client
public AbstractResourceIT()
public void setLogger()
protected static org.apache.http.client.methods.HttpPost postObjMethod(String pid)
protected static org.apache.http.client.methods.HttpPut putObjMethod(String pid)
protected static org.apache.http.client.methods.HttpPost postObjMethod(String pid, String query)
protected static org.apache.http.client.methods.HttpPost postDSMethod(String pid, String ds, String content) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected static org.apache.http.client.methods.HttpPut putDSMethod(String pid, String ds, String content) throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest method) throws IOException
IOExceptionprotected int getStatus(org.apache.http.client.methods.HttpUriRequest method) throws IOException
IOExceptionprotected static String getRandomUniquePid()
Copyright © 2013–2017 DuraSpace, Inc.. All rights reserved.