org.hackystat.dailyprojectdata.test
Class DailyProjectDataTestHelper

java.lang.Object
  extended by org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
Direct Known Subclasses:
TestBuildRestApi, TestCacheRestApi, TestCodeIssueRestApi, TestCommitRestApi, TestComplexityRestApi, TestCouplingRestApi, TestCoverageRestApi, TestDevTimeRestApi, TestFileMetricRestApi, TestFrontSideCache, TestIssueRestApi, TestPingRestApi, TestUnitTestRestApi

public class DailyProjectDataTestHelper
extends java.lang.Object

Provides a helper class to facilitate JUnit testing.

Author:
Philip Johnson

Constructor Summary
DailyProjectDataTestHelper()
          Constructor.
 
Method Summary
protected  java.lang.String getDailyProjectDataHostName()
          Returns the hostname associated with this DPD test server.
protected  Server getDpdServer()
          Returns the DPD server instance.
protected  java.lang.String getSensorBaseHostName()
          Returns the sensorbase hostname that this DPD server communicates with.
static void setupServer()
          Starts the server going for these tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DailyProjectDataTestHelper

public DailyProjectDataTestHelper()
Constructor.

Method Detail

setupServer

public static void setupServer()
                        throws java.lang.Exception
Starts the server going for these tests.

Throws:
java.lang.Exception - If problems occur setting up the server.

getDailyProjectDataHostName

protected java.lang.String getDailyProjectDataHostName()
Returns the hostname associated with this DPD test server.

Returns:
The host name, including the context root.

getSensorBaseHostName

protected java.lang.String getSensorBaseHostName()
Returns the sensorbase hostname that this DPD server communicates with.

Returns:
The host name, including the context root.

getDpdServer

protected Server getDpdServer()
Returns the DPD server instance.

Returns:
The DPD server instance.