|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jersey.test.framework.JerseyTest
eu.scape_project.watch.rest.CoreRestTest
public class CoreRestTest
Unit tests of the watch core REST API.
| Field Summary | |
|---|---|
org.junit.rules.MethodRule |
watchman
Logging start and finish of tests. |
| Constructor Summary | |
|---|---|
CoreRestTest()
Initialize Jersey Test Framework. |
|
| Method Summary | |
|---|---|
static void |
afterClass()
Cleanup the data folder. |
void |
asyncRequest(eu.scape_project.watch.rest.WatchClient.Format format)
Tests on asynchronous requests. |
void |
asynRequestJSON()
Tests on asynchronous requests with JSON output. |
void |
asynRequestXML()
Tests on asynchronous requests with XML output. |
static void |
beforeClass()
Initialize the data folder. |
void |
entityCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
Test Entity CRUD operations. |
void |
entityCrudJSON()
Test Entity CRUD operations with JSON output. |
void |
entityCrudXML()
Test Entity CRUD operations with XML output. |
void |
entityTypeCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
Test Entity Type CRUD operations. |
void |
entityTypeCrudJson()
Test entity type with JSON output. |
void |
entityTypeCrudXML()
Test entity type with XML output. |
void |
propertyCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
Test Property CRUD operations. |
void |
propertyCrudJSON()
Test Property CRUD operations using JSON output format. |
void |
propertyCrudXML()
Test Property CRUD operations using XML output format. |
void |
propertyValueCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
Test PropertyValue CRUD operations. |
void |
propertyValueCrudJSON()
Test PropertyValue CRUD operations using JSON output format. |
void |
propertyValueCrudXML()
Test PropertyValue CRUD operations using XML output format. |
void |
setUp()
|
void |
syncRequest(eu.scape_project.watch.rest.WatchClient.Format format)
Tests on synchronous requests. |
void |
synRequestJSON()
Tests on synchronous requests with JSON output. |
void |
synRequestXML()
Tests on synchronous requests with XML output. |
| Methods inherited from class com.sun.jersey.test.framework.JerseyTest |
|---|
client, configure, getBaseURI, getClient, getClientFactory, getPort, getTestContainerFactory, resource, setClientFactory, setTestContainerFactory, tearDown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.junit.rules.MethodRule watchman
| Constructor Detail |
|---|
public CoreRestTest()
| Method Detail |
|---|
public static void beforeClass()
public static void afterClass()
public void setUp()
throws Exception
setUp in class com.sun.jersey.test.framework.JerseyTestExceptionpublic void entityTypeCrudJson()
entityCRUD(eu.scape_project.watch.rest.WatchClient.Format)public void entityTypeCrudXML()
public void entityTypeCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
format - The output format.public void entityCrudJSON()
entityCRUD(eu.scape_project.watch.rest.WatchClient.Format)public void entityCrudXML()
entityCRUD(eu.scape_project.watch.rest.WatchClient.Format)public void entityCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
Entity CRUD operations.
format - the output formatpublic void propertyCrudJSON()
Property CRUD operations using JSON output format.
propertyCRUD(eu.scape_project.watch.rest.WatchClient.Format)public void propertyCrudXML()
Property CRUD operations using XML output format.
propertyCRUD(eu.scape_project.watch.rest.WatchClient.Format)public void propertyCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
Property CRUD operations.
format - The output formatpublic void propertyValueCrudJSON()
PropertyValue CRUD operations using JSON output format.
propertyValueCRUD(eu.scape_project.watch.rest.WatchClient.Format)public void propertyValueCrudXML()
PropertyValue CRUD operations using XML output format.
propertyValueCRUD(eu.scape_project.watch.rest.WatchClient.Format)public void propertyValueCRUD(eu.scape_project.watch.rest.WatchClient.Format format)
PropertyValue CRUD operations.
format - The output formatpublic void synRequestXML()
public void synRequestJSON()
public void syncRequest(eu.scape_project.watch.rest.WatchClient.Format format)
format - The format of the output.public void asynRequestXML()
public void asynRequestJSON()
public void asyncRequest(eu.scape_project.watch.rest.WatchClient.Format format)
format - The format of the output.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||