org.hackystat.dailyprojectdata.resource.commit
Class TestCommitData

java.lang.Object
  extended by org.hackystat.dailyprojectdata.resource.commit.TestCommitData

public class TestCommitData
extends java.lang.Object

Tests if the CoverageData wraps a SensorData instance as intended.

Author:
aito

Constructor Summary
TestCommitData()
           
 
Method Summary
static org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData createData(java.lang.String timestamp, java.lang.String runtime, java.lang.String owner, java.lang.String resource, java.lang.String linesAdded, java.lang.String linesDeleted)
          A helper method used to create the SensorData instances used to by this test class.
 void setUp()
          Setup this test class.
 void testEquals()
          Tests the overridden .equals method returns the correct values.
 void testGetLinesAdded()
          Tests if the commit data returns the correct amount of lines added.
 void testGetLinesDeleted()
          Tests if the commit data returns the correct amount of lines deleted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCommitData

public TestCommitData()
Method Detail

setUp

public void setUp()
Setup this test class.


testGetLinesAdded

public void testGetLinesAdded()
Tests if the commit data returns the correct amount of lines added.


testGetLinesDeleted

public void testGetLinesDeleted()
Tests if the commit data returns the correct amount of lines deleted.


testEquals

public void testEquals()
Tests the overridden .equals method returns the correct values.


createData

public static org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData createData(java.lang.String timestamp,
                                                                                      java.lang.String runtime,
                                                                                      java.lang.String owner,
                                                                                      java.lang.String resource,
                                                                                      java.lang.String linesAdded,
                                                                                      java.lang.String linesDeleted)
A helper method used to create the SensorData instances used to by this test class.

Parameters:
timestamp - the timestamp of the created sensor data instance.
runtime - the runtime of the SensorData instance.
owner - the specified owner.
resource - the specified resource.
linesAdded - the total lines added in returned data instance.
linesDeleted - the total lines deleted in returned data instance.
Returns:
the populated SensorData instance.