|
||||||||||
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.projects.TestProjectRestApi
public class TestProjectRestApi
Tests the SensorBase REST API for Project resources.
Field Summary |
---|
Fields inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper |
---|
adminEmail, adminPassword, projectManager, sdtManager, sensorDataManager, server, userManager |
Constructor Summary | |
---|---|
TestProjectRestApi()
|
Method Summary | |
---|---|
void |
getProjectIndex()
Test that GET host/sensorbase/projects returns an index containing at least one Project. |
void |
getTestUserProject()
Test that GET host/sensorbase/projects/TestUser@hackystat.org/TestProject returns a representation of TestProject. |
void |
getTestUserProjectIndex()
Test that GET host/sensorbase/projects/TestUser@hackystat.org returns an index containing at least one ProjectRef. |
void |
getTestUserProjectSdtParam()
Test that the GET of a project with the SDT parameter works correctly. |
void |
getTestUserProjectSensorData()
Test that GET host/sensorbase/projects/TestUser@hackystat.org/TestProject/sensordata returns an index of SensorData. |
void |
getTestUserProjectSensorDataInterval()
Test that GET host/sensorbase/projects/TestUser@hackystat.org/TestProject/sensordata? |
void |
getTestUserProjectSensorSummary()
Test that GET host/sensorbase/projects/TestUser@hackystat.org/TestProject/sensordata? |
void |
getTestUserProjectSnapshot()
Tests the snapshot API. |
void |
getTestUserProjectStartIndexMaxInstancesParams()
Test that the GET of a project with the startIndex/maxInstances parameters work correctly. |
void |
newUserTest()
Tests that after creating a new User, it has a Default Project. |
void |
putBadProjects()
Test that PUT of incomplete project definitions causes errors. |
void |
putMultipleProject()
Test that PUT multiple times does not cause a problem for getProjectIndex. |
void |
putProject()
Test that PUT, rename, and DELETE of host/projects/{user}/{project} works. |
void |
testUserDefaultProjectData()
Tests that we can retrieve all data for the TestUser under their Default Project. |
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 TestProjectRestApi()
Method Detail |
---|
public void getProjectIndex() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProjectIndex() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProject() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProjectSensorData() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProjectSensorSummary() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProjectSnapshot() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProjectSensorDataInterval() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProjectSdtParam() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getTestUserProjectStartIndexMaxInstancesParams() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void putProject() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void putBadProjects() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void putMultipleProject() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void newUserTest() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void testUserDefaultProjectData() 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 |