|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.ant.test.AntSensorTestHelper
public class AntSensorTestHelper
Provides a helper method for Ant sensor test case development.
Field Summary | |
---|---|
protected static java.lang.String |
host
The test host. |
protected static org.hackystat.sensorbase.server.Server |
server
The test sensorbase server. |
protected static java.lang.String |
user
The test user. |
Constructor Summary | |
---|---|
AntSensorTestHelper()
|
Method Summary | |
---|---|
java.util.List<java.io.File> |
getXmlFiles(java.lang.String testFileDir)
Returns a list of XML files in the passed testFileDir directory. |
static void |
setupServer()
Starts the server going for these tests, and makes sure our test user is registered. |
static void |
teardownServer()
Gets rid of the sent sensor data and the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String user
protected static java.lang.String host
protected static org.hackystat.sensorbase.server.Server server
Constructor Detail |
---|
public AntSensorTestHelper()
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 java.util.List<java.io.File> getXmlFiles(java.lang.String testFileDir) throws java.lang.Exception
testFileDir
- The directory in which the test files are found.
java.lang.Exception
- If the test directory cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |