|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensorbase.test.SensorBaseRestApiHelper
org.hackystat.sensorbase.resource.sensordata.TestSensorDataRestApi
public class TestSensorDataRestApi
Tests the SensorBase REST API for Sensor Data resources.
Field Summary |
---|
Fields inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper |
---|
adminEmail, adminPassword, projectManager, sdtManager, sensorDataManager, server, userManager |
Constructor Summary | |
---|---|
TestSensorDataRestApi()
|
Method Summary | |
---|---|
void |
deleteAllData()
Test that DELETE host/sensorbase/sensordata/user deletes all data. |
void |
getNonExistingUserSensorData()
Test GET host/sensorbase/sensordata/TestUser@hackystat.org/9999-04-30T09:00:00.000 throws a SensorBaseClientException, since the data does not exist. |
void |
getSensorDataIndex()
Test that GET host/sensorbase/sensordata returns an index containing all Sensor Data. |
void |
getSensorDataIndexLastMod()
Test that GET host/sensorbase/sensordata/TestUser@hackystat.org? |
void |
getUserSdtSensorDataIndex()
Test that GET host/sensorbase/sensordata/TestUser@hackystat.org? |
void |
getUserSensorData()
Test GET host/sensorbase/sensordata/TestUser@hackystat.org/2007-04-30T09:00:00.000 and see that it returns a SensorData instance.. |
void |
getUserSensorDataIndex()
Test that GET host/sensorbase/sensordata/TestUser@hackystat.org returns some sensor data. |
void |
putBatchSensorData()
Test that a batch PUT of sensor data works. |
void |
putSensorData()
Test that PUT and DELETE of host/sensorbase/sensordata/TestUser@hackystat.org/2007-04-30T02:00:00.000 works. |
void |
testCaching()
Tests that caching works. |
void |
testMakeSensorData()
Tests the makeSensorData method. |
Methods inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper |
---|
getHostName, setupServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestSensorDataRestApi()
Method Detail |
---|
public void getSensorDataIndex() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void deleteAllData() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void testCaching() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getUserSensorDataIndex() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getUserSdtSensorDataIndex() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getSensorDataIndexLastMod() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getUserSensorData() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getNonExistingUserSensorData() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void putSensorData() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void putBatchSensorData() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void testMakeSensorData() throws java.lang.Exception
java.lang.Exception
- If problems occur.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |