org.hackystat.sensorshell
Class TestSingleSensorShell

java.lang.Object
  extended by org.hackystat.sensorshell.TestSingleSensorShell

public class TestSingleSensorShell
extends java.lang.Object

Provides simple unit tests for the SensorShell.

Author:
Philip Johnson

Constructor Summary
TestSingleSensorShell()
           
 
Method Summary
static void setupServer()
          Starts the server going for these tests, and makes sure our test user is registered.
static void teardownServer()
          Gets rid of the sent sensor data and the user.
 void testSensorShell()
          Tests that the SensorShell can send data to the Server and this data can be retrieved.
 void testStateChange()
          Tests that statechange works correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSingleSensorShell

public TestSingleSensorShell()
Method Detail

setupServer

public static void setupServer()
                        throws java.lang.Exception
Starts the server going for these tests, and makes sure our test user is registered.

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

teardownServer

public static void teardownServer()
                           throws java.lang.Exception
Gets rid of the sent sensor data and the user.

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

testSensorShell

public void testSensorShell()
                     throws java.lang.Exception
Tests that the SensorShell can send data to the Server and this data can be retrieved.

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

testStateChange

public void testStateChange()
                     throws java.lang.Exception
Tests that statechange works correctly.

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