|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.test.ProjectBrowserTestHelper
public class ProjectBrowserTestHelper
Supports JUnit testing of the ProjectBrowser by creating test instances of the sensorbase, dailyprojectdata, and telemetry services.
Field Summary | |
---|---|
protected static java.lang.String |
TEST_EDIT_SPECTATOR
|
protected static java.lang.String |
TEST_INVITEE
|
protected static java.lang.String |
TEST_NEW_INVITEE
|
protected static java.lang.String |
TEST_NEW_SPECTATOR
|
protected static java.lang.String |
TEST_USER
|
Constructor Summary | |
---|---|
ProjectBrowserTestHelper()
Constructor. |
Method Summary | |
---|---|
void |
addMember(java.lang.String projectName,
java.lang.String owner,
java.lang.String newMember)
Adds newMember to projectName owned by owner. |
void |
clearData(java.lang.String user)
Clear data associated with the given user. |
protected void |
generateSimData(java.lang.String user,
java.lang.String projectName,
javax.xml.datatype.XMLGregorianCalendar endTime,
int days)
Generate a set of data for testing. |
protected java.lang.String |
getDailyProjectDataHostName()
Returns the sensorbase hostname that this Telemetry server communicates with. |
protected java.lang.String |
getSensorBaseHostName()
Returns the sensorbase hostname that this Telemetry server communicates with. |
protected java.lang.String |
getTelemetryHostName()
Returns the hostname associated with this Telemetry test server. |
protected java.util.Properties |
getTestProperties()
Returns a Properties instance with the SensorBase, DPD, and Telemetry services ProjectBrowserProperties set to test values. |
static void |
setupServer()
Starts the servers going for these tests. |
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 TEST_USER
protected static final java.lang.String TEST_INVITEE
protected static final java.lang.String TEST_NEW_INVITEE
protected static final java.lang.String TEST_NEW_SPECTATOR
protected static final java.lang.String TEST_EDIT_SPECTATOR
Constructor Detail |
---|
public ProjectBrowserTestHelper()
Method Detail |
---|
public static void setupServer() throws java.lang.Exception
java.lang.Exception
- If problems occur setting up the server.protected java.lang.String getTelemetryHostName()
protected java.lang.String getSensorBaseHostName()
protected java.lang.String getDailyProjectDataHostName()
protected java.util.Properties getTestProperties()
protected void generateSimData(java.lang.String user, java.lang.String projectName, javax.xml.datatype.XMLGregorianCalendar endTime, int days)
user
- name of the test user.
DONOT include the "@hackystat.org", this method will add that in.projectName
- name of the test project.endTime
- end time of the test data.days
- number of days before endTime that this data will cover.public void addMember(java.lang.String projectName, java.lang.String owner, java.lang.String newMember)
projectName
- The name of the project.owner
- The owner of the project (without domain name).newMember
- The member to be added (without domain name).public void clearData(java.lang.String user)
user
- the given user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |