|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.net.tests.TestItem
public class TestItem
contains a specific instance of a Test and the configuration information for when and how to run it
Constructor Summary | |
---|---|
TestItem(Test testType)
Creates a TestItem for the specified test with its default option values. |
|
TestItem(Test testType,
Configuration config)
Creates a TestItem for the specified test with its default option values. |
Method Summary | |
---|---|
int |
compareTo(TestItem anotherTestItem)
Compares the names of two test items lexicographically, ignoring case considerations |
boolean |
equals(java.lang.Object o)
|
Configuration |
getConfig()
gets the config values to run the test with (may include variables) |
Test |
getConfiguredTest()
Gets a configured copy of the Test type in this TestItem |
java.lang.String |
getDescription()
gets what this test item does |
java.lang.String |
getName()
gets unique name of this test item (will not contain spaces) |
java.util.Vector<java.lang.String> |
getResultNames()
gets the results the test this contains will return (from the scorebot static info file) |
TestSchedule |
getSchedule()
gets when to run this test item's test |
java.lang.String |
getTestDescription()
gets a description of the test |
java.lang.String |
getTestName()
gets the name of the test |
Test |
getTestType()
gets the test this item configures (used to instantiate configured copies of this test) |
int |
hashCode()
creates a hashcode by comining the hashcodes for name, description, and test name into a long and using its hashcode |
void |
setDescription(java.lang.String description)
sets what this test item does |
void |
setName(java.lang.String name)
sets unique name of this test item (no spaces are allowed, so all spaces are replaced with underscores) |
java.lang.String |
toString()
returns the name of this test item |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestItem(Test testType)
testType
- the type of test this item configurespublic TestItem(Test testType, Configuration config)
testType
- the type of test this item configuresMethod Detail |
---|
public int compareTo(TestItem anotherTestItem)
compareTo
in interface java.lang.Comparable<TestItem>
anotherTestItem
- the TestItem to be compared
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public Test getConfiguredTest()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public void setName(java.lang.String name) throws IllegalArgValException
IllegalArgValException
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public TestSchedule getSchedule()
public Configuration getConfig()
public Test getTestType()
public java.util.Vector<java.lang.String> getResultNames()
public java.lang.String getTestName()
public java.lang.String getTestDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |