|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebResourceTesting
Unit tests on the services provided by a web resource in Silverpeas. This interface defines the operations a unit test about web resources should implement.
Field Summary | |
---|---|
static String |
HTTP_SESSIONKEY
The HTTP header paremeter in an incoming request that carries the user session key as it is defined in the Silverpeas REST web service API. |
Method Summary | ||
---|---|---|
String |
anUnexistingResourceURI()
Gets the URI of an invalid or an unexisting web resource. |
|
|
aResource()
Gets a resource instance to use in tests. |
|
String |
aResourceURI()
Gets the URI of a valid and existing web resource backed by a REST web service. |
|
String |
getSessionKey()
Gets the valid session key to use in tests. |
|
Class<?> |
getWebEntityClass()
Gets the class of the web entities handled by the REST web service to test. |
Field Detail |
---|
static final String HTTP_SESSIONKEY
Method Detail |
---|
String aResourceURI()
String anUnexistingResourceURI()
<T> T aResource()
T
- the type of the resource.
String getSessionKey()
Class<?> getWebEntityClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |