|
||||||||||
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.users.TestUsersRestApi
public class TestUsersRestApi
Tests the SensorBase REST API for Users and User resources.
Field Summary |
---|
Fields inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper |
---|
adminEmail, adminPassword, projectManager, sdtManager, sensorDataManager, server, userManager |
Constructor Summary | |
---|---|
TestUsersRestApi()
|
Method Summary | |
---|---|
void |
deleteUser()
Tests that a user can be deleted after creation. |
void |
getUser()
Test that GET host/sensorbase/users/TestUser@hackystat.org returns the TestUser test user. |
void |
getUsersIndex()
Test that GET host/sensorbase/users returns an index containing TestUser and that the HREFs are OK. |
void |
isHost()
Test that the SensorBaseClient.isHost() method operates correctly. |
void |
isRegistered()
Test that the SensorBaseClient.isRegistered() method operates correctly. |
void |
postUserProperties()
Tests that a user can have their properties updated. |
void |
registerUser()
Tests the POST method that registers a new user. |
void |
registerUsers()
Tests multiple register users. |
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 TestUsersRestApi()
Method Detail |
---|
public void getUsersIndex() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void isHost() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void isRegistered() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void getUser() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void registerUser() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void registerUsers() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void deleteUser() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void postUserProperties() 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 |