org.hackystat.dailyprojectdata.resource.commit
Class TestCommitRestApi

java.lang.Object
  extended by org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
      extended by org.hackystat.dailyprojectdata.resource.commit.TestCommitRestApi

public class TestCommitRestApi
extends DailyProjectDataTestHelper

Tests the Commit portion of the DailyProjectData REST API.

Author:
austen

Constructor Summary
TestCommitRestApi()
           
 
Method Summary
 void testGetCommit()
          Test that GET {host}/commit/{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

TestCommitRestApi

public TestCommitRestApi()
Method Detail

testGetCommit

public void testGetCommit()
                   throws java.lang.Exception
Test that GET {host}/commit/{user}/default/{starttime} works properly. First, it creates a test user and sends some sample CodeIssue 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.