org.hackystat.dailyprojectdata.resource.unittest
Class TestUnitTestRestApi

java.lang.Object
  extended by org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
      extended by org.hackystat.dailyprojectdata.resource.unittest.TestUnitTestRestApi

public class TestUnitTestRestApi
extends DailyProjectDataTestHelper

Runs test to exercise DPDResource.

Author:
Pavel Senin, Philip Johnson.

Constructor Summary
TestUnitTestRestApi()
           
 
Method Summary
 void getDefaultUnitTestDPD()
          Test that GET {host}/unittest/{user}/default/{starttime} works properly.
 
Methods inherited from class org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
getDailyProjectDataHostName, getDpdServer, getSensorBaseHostName, setupServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUnitTestRestApi

public TestUnitTestRestApi()
Method Detail

getDefaultUnitTestDPD

public void getDefaultUnitTestDPD()
                           throws java.lang.Exception
Test that GET {host}/unittest/{user}/default/{starttime} works properly. First, it creates a test user and sends some sample DevEvent data to the SensorBase. Then, it invokes the GET request and checks to see that it obtains the right answer. Finally, it deletes the data and the user.

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