org.hackystat.dailyprojectdata.resource.ping
Class TestPingRestApi

java.lang.Object
  extended by org.hackystat.dailyprojectdata.test.DailyProjectDataTestHelper
      extended by org.hackystat.dailyprojectdata.resource.ping.TestPingRestApi

public class TestPingRestApi
extends DailyProjectDataTestHelper

Tests the Ping REST API.

Author:
Philip Johnson

Constructor Summary
TestPingRestApi()
           
 
Method Summary
 void testPing()
          Test that GET {host}/ping returns "DailyProjectData", and that GET {host}/ping?user={user}&password={password} returns "DailyProjectData authenticated".
 
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

TestPingRestApi

public TestPingRestApi()
Method Detail

testPing

public void testPing()
              throws java.lang.Exception
Test that GET {host}/ping returns "DailyProjectData", and that GET {host}/ping?user={user}&password={password} returns "DailyProjectData authenticated".

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