org.hackystat.dailyprojectdata.resource.codeissue
Class TestCodeIssueRestApi

java.lang.Object
  extended by org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
      extended by org.hackystat.dailyprojectdata.resource.codeissue.TestCodeIssueRestApi

public class TestCodeIssueRestApi
extends DailyProjectDataTestHelper

Tests the CodeIssue portion of the DailyProjectData REST API.

Author:
Philip Johnson, Julie Sakuda.

Constructor Summary
TestCodeIssueRestApi()
           
 
Method Summary
 void setUp()
          Create data and send to server if we haven't done it already.
 void testAnyQuery()
          Test that GET {host}/codeissue/{user}/default/{starttime} works properly with no type and tool parameters.
 void testToolQuery()
          Tests DPD query with only tool.
 void testToolTypeQuery()
          Tests DPD query with tool and type.
 void testTypeQuery()
          Tests DPD query where type is specified.
 
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

TestCodeIssueRestApi

public TestCodeIssueRestApi()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Create data and send to server if we haven't done it already.

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

testAnyQuery

public void testAnyQuery()
                  throws java.lang.Exception
Test that GET {host}/codeissue/{user}/default/{starttime} works properly with no type and tool parameters.

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

testTypeQuery

public void testTypeQuery()
                   throws DailyProjectDataClientException
Tests DPD query where type is specified.

Throws:
DailyProjectDataClientException - Thrown if an error occurs.

testToolTypeQuery

public void testToolTypeQuery()
                       throws DailyProjectDataClientException
Tests DPD query with tool and type.

Throws:
DailyProjectDataClientException - Thrown if an error occurs.

testToolQuery

public void testToolQuery()
                   throws DailyProjectDataClientException
Tests DPD query with only tool.

Throws:
DailyProjectDataClientException - Thrown if an error occurs.