org.hackystat.sensorbase.resource.ping
Class TestPingRestApi

java.lang.Object
  extended by org.hackystat.sensorbase.test.SensorBaseRestApiHelper
      extended by org.hackystat.sensorbase.resource.ping.TestPingRestApi

public class TestPingRestApi
extends SensorBaseRestApiHelper

Tests the Ping REST API.

Author:
Philip Johnson

Field Summary
 
Fields inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper
adminEmail, adminPassword, projectManager, sdtManager, sensorDataManager, server, userManager
 
Constructor Summary
TestPingRestApi()
           
 
Method Summary
 void testPing()
          Test that GET {host}/ping returns the service name, and that GET {host}/ping?user={user}&password={password} is OK.
 
Methods inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper
getHostName, 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 the service name, and that GET {host}/ping?user={user}&password={password} is OK.

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