org.hackystat.sensorbase.resource.projects
Class TestProjectSpectatorRestApi

java.lang.Object
  extended by org.hackystat.sensorbase.test.SensorBaseRestApiHelper
      extended by org.hackystat.sensorbase.resource.projects.TestProjectSpectatorRestApi

public class TestProjectSpectatorRestApi
extends SensorBaseRestApiHelper

Tests the SensorBase REST API for Project spectators. A project spectator can be added to the project by the owner. The project spectator can view the sensordata associated with the project.

Author:
Philip M. Johnson

Field Summary
 
Fields inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper
adminEmail, adminPassword, projectManager, sdtManager, sensorDataManager, server, userManager
 
Constructor Summary
TestProjectSpectatorRestApi()
           
 
Method Summary
static void setupMembership()
          Starts the server going for these tests, and makes sure our test user is registered.
 void testSpectatorship()
          Tests the normal project spectator use case.
 
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

TestProjectSpectatorRestApi

public TestProjectSpectatorRestApi()
Method Detail

setupMembership

public static void setupMembership()
                            throws java.lang.Exception
Starts the server going for these tests, and makes sure our test user is registered.

Throws:
java.lang.Exception - If problems occur setting up the server.

testSpectatorship

public void testSpectatorship()
                       throws java.lang.Exception
Tests the normal project spectator use case.

Throws:
java.lang.Exception - If problems occur.