org.hackystat.telemetry.service.test
Class TelemetryTestHelper

java.lang.Object
  extended by org.hackystat.telemetry.service.test.TelemetryTestHelper
Direct Known Subclasses:
TestBuildChartRestApi, TestCacheRestApi, TestChartRestApi, TestChurnChartRestApi, TestCodeIssueChartRestApi, TestCommitChartRestApi, TestCouplingChartRestApi, TestCoverageChartRestApi, TestCyclomaticComplexityChartRestApi, TestDevEventChartRestApi, TestFileMetricChartRestApi, TestIssueChartRestApi, TestPingRestApi, TestUnitTestChartRestApi

public class TelemetryTestHelper
extends java.lang.Object

Provides a helper class to facilitate JUnit testing.

Author:
Philip Johnson

Constructor Summary
TelemetryTestHelper()
          Constructor.
 
Method Summary
protected  java.lang.String getDailyProjectDataHostName()
          Returns the DPD hostname that this Telemetry server communicates with.
protected  java.lang.String getSensorBaseHostName()
          Returns the sensorbase hostname that this Telemetry server communicates with.
protected  java.lang.String getTelemetryHostName()
          Returns the hostname associated with this Telemetry test server.
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

TelemetryTestHelper

public TelemetryTestHelper()
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.

getTelemetryHostName

protected java.lang.String getTelemetryHostName()
Returns the hostname associated with this Telemetry test server.

Returns:
The host name, including the context root.

getSensorBaseHostName

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

Returns:
The host name, including the context root.

getDailyProjectDataHostName

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

Returns:
The host name, including the context root.