org.hackystat.dailyprojectdata.resource.filemetric
Class TestFileMetricRestApi

java.lang.Object
  extended by org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
      extended by org.hackystat.dailyprojectdata.resource.filemetric.TestFileMetricRestApi

public class TestFileMetricRestApi
extends DailyProjectDataTestHelper

Tests the FileMetric DPD.

Author:
Philip Johnson

Constructor Summary
TestFileMetricRestApi()
           
 
Method Summary
 void getDefaultFileMetric()
          Test that GET {host}/filemetric/{user}/default/{starttime}/TotalLines 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

TestFileMetricRestApi

public TestFileMetricRestApi()
Method Detail

getDefaultFileMetric

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