org.hackystat.dailyprojectdata.resource.snapshot
Class TestSensorDataRefComparator

java.lang.Object
  extended by org.hackystat.dailyprojectdata.resource.snapshot.TestSensorDataRefComparator

public class TestSensorDataRefComparator
extends java.lang.Object

Tests that the SensorDataRefs are properly compared.

Author:
jsakuda

Constructor Summary
TestSensorDataRefComparator()
           
 
Method Summary
 void setupDataRefs()
          Creates dummy sensor data refs for testing.
 void testCompareAscending()
          Tests the comparing of data refs in ascending order.
 void testCompareDescending()
          Tests the comparing of data refs in descending order.
 void testCompareSame()
          Tests the comparing of data refs with the same timestamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSensorDataRefComparator

public TestSensorDataRefComparator()
Method Detail

setupDataRefs

public void setupDataRefs()
                   throws java.lang.Exception
Creates dummy sensor data refs for testing.

Throws:
java.lang.Exception - Thrown if there is an error.

testCompareAscending

public void testCompareAscending()
Tests the comparing of data refs in ascending order.


testCompareDescending

public void testCompareDescending()
Tests the comparing of data refs in descending order.


testCompareSame

public void testCompareSame()
Tests the comparing of data refs with the same timestamp.