|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.dailyprojectdata.resource.snapshot.TestSensorDataSnapshot
public class TestSensorDataSnapshot
Tests the functionality of the SensorDataSnapshot
.
Constructor Summary | |
---|---|
TestSensorDataSnapshot()
|
Method Summary | |
---|---|
static void |
setupServer()
Starts the server, creates the user, and sends the data. |
static void |
teardownServer()
Deletes the sensordata and the user. |
void |
testSnapshot()
Tests the getting of the last snapshot of the day. |
void |
testSnapshotBucketSize()
Tests that the number of buckets retrieved during snapshot creation is correct. |
void |
testSnapshotWithTool()
Test the getting of the last snapshot of the day for a particular tool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestSensorDataSnapshot()
Method Detail |
---|
public static void setupServer() throws java.lang.Exception
java.lang.Exception
- If problems occur setting up the server.public static void teardownServer() throws java.lang.Exception
java.lang.Exception
- If problems occur setting up the server.public void testSnapshot() throws java.lang.Exception
java.lang.Exception
- Thrown if there is a failure to communicate with the sensorbase.public void testSnapshotWithTool() throws java.lang.Exception
java.lang.Exception
- Thrown if there is a failure communicating with the sensorbase.public void testSnapshotBucketSize() throws java.lang.Exception
java.lang.Exception
- Thrown if there is an error creating a snapshot.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |