org.hackystat.dailyprojectdata.resource.coupling
Class TestCouplingRestApi

java.lang.Object
  extended by org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
      extended by org.hackystat.dailyprojectdata.resource.coupling.TestCouplingRestApi

public class TestCouplingRestApi
extends DailyProjectDataTestHelper

Tests the Coupling DPD.

Author:
Philip Johnson

Constructor Summary
TestCouplingRestApi()
           
 
Method Summary
 void getCoupling()
          Test that GET {host}/coupling/{user}/{project}/{starttime}/{type}?Tool={tool} 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

TestCouplingRestApi

public TestCouplingRestApi()
Method Detail

getCoupling

public void getCoupling()
                 throws java.lang.Exception
Test that GET {host}/coupling/{user}/{project}/{starttime}/{type}?Tool={tool} works properly. First, it creates a test user and sends some sample Coupling 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.