org.hackystat.sensor.ant.issue
Class TestIssueSensor

java.lang.Object
  extended by org.hackystat.sensor.ant.test.AntSensorTestHelper
      extended by org.hackystat.sensor.ant.issue.TestIssueSensor

public class TestIssueSensor
extends AntSensorTestHelper

Test cases for Issue Sensor.

Author:
Shaoxuan

Field Summary
 
Fields inherited from class org.hackystat.sensor.ant.test.AntSensorTestHelper
host, server, user
 
Constructor Summary
TestIssueSensor()
           
 
Method Summary
 void testIssueSensorWithGoogleProjectHosting()
          Test the issue sensor with public Google Project Hosting service.
 void testIssueSensorWithMakeupTestData()
          Test inner logic with makeup test data, in form of String arrays.
 
Methods inherited from class org.hackystat.sensor.ant.test.AntSensorTestHelper
getXmlFiles, setupServer, teardownServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestIssueSensor

public TestIssueSensor()
Method Detail

testIssueSensorWithGoogleProjectHosting

public void testIssueSensorWithGoogleProjectHosting()
                                             throws org.hackystat.sensorbase.client.SensorBaseClientException,
                                                    org.hackystat.sensorshell.usermap.SensorShellMapException
Test the issue sensor with public Google Project Hosting service. It will get data from project http://code.google.com/feeds/p/hackystat-sensor-ant.

Throws:
org.hackystat.sensorbase.client.SensorBaseClientException - if test fail.
org.hackystat.sensorshell.usermap.SensorShellMapException - if error when loading sensorshell map

testIssueSensorWithMakeupTestData

public void testIssueSensorWithMakeupTestData()
                                       throws org.hackystat.sensorshell.usermap.SensorShellMapException
Test inner logic with makeup test data, in form of String arrays.

Throws:
org.hackystat.sensorshell.usermap.SensorShellMapException - if error when loading sensorshell map