|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.dailyprojectdata.resource.coverage.TestCoverageData
public class TestCoverageData
Tests if the CoverageData wraps a SensorData instance as intended.
Constructor Summary | |
---|---|
TestCoverageData()
|
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)
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 |
testGetCoverageProperty()
Tests if the correct Property is returned or that null is returned if the property does not exist. |
void |
testGetCovered()
Tests if the correct amount of uncovered coverage entities is returned. |
void |
testGetResource()
Tests if the resource returned from the wrapper class is the same as the resource in the SensorData instance. |
void |
testGetRuntime()
Tests if the correct runtime is returned. |
void |
testGetUncovered()
Tests if the correct amount of uncovered coverage entities is returned. |
void |
testGranularityCaseInsensitivity()
Tests if the correct coverage data is returned regardless of the granularity's case. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestCoverageData()
Method Detail |
---|
public void setUp() throws java.lang.Exception
java.lang.Exception
- If problems occur.public void testGetRuntime()
public void testGetUncovered()
public void testGetCovered()
public void testGetResource()
public void testGetCoverageProperty()
public void testEquals() throws java.lang.Exception
java.lang.Exception
- if problems occurpublic void testGranularityCaseInsensitivity()
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) throws java.lang.Exception
timestamp
- the timestamp of the created sensor data instance.runtime
- the runtime of the SensorData instance.owner
- the specified owner.resource
- the specified resource.
java.lang.Exception
- if problems occur.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |