org.hackystat.sensorbase.resource.db
Class TestRowCountRestApi

java.lang.Object
  extended by org.hackystat.sensorbase.test.SensorBaseRestApiHelper
      extended by org.hackystat.sensorbase.resource.db.TestRowCountRestApi

public class TestRowCountRestApi
extends SensorBaseRestApiHelper

Tests the RowCount API. Note that if you implement an alternative database backend that does not have a table named SensorData, then you will need to provide a System parameter called TestRowCountRestApi.tableName that will be used instead in order to get this test case to pass.

Author:
Philip Johnson

Field Summary
 
Fields inherited from class org.hackystat.sensorbase.test.SensorBaseRestApiHelper
adminEmail, adminPassword, projectManager, sdtManager, sensorDataManager, server, userManager
 
Constructor Summary
TestRowCountRestApi()
           
 
Method Summary
 void testRowCountRestApi()
          Test that GET {host}/db/table/SensorData/rowcount runs a non-zero value.
 
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

TestRowCountRestApi

public TestRowCountRestApi()
Method Detail

testRowCountRestApi

public void testRowCountRestApi()
                         throws java.lang.Exception
Test that GET {host}/db/table/SensorData/rowcount runs a non-zero value.

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