|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cdx.scorebot.net.TestSuite
public class TestSuite
Contains the TestItems for a given Service, when to schedule those tests, and how to score their results. The Service object will be used to instantiate Tests with their constructors. This ensures the Tests are compatible with the Service (otherwise, such a constructor wont exist).
Constructor Summary | |
---|---|
TestSuite(Service service)
instantiates a TestSuite for the specified Service |
Method Summary | |
---|---|
void |
addTestItem(TestItem ti)
Adds a TestItem to be tested. |
int |
compareTo(TestSuite anotherTestSuite)
Compares the names of two test suites lexicographically, ignoring case considerations |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDescription()
gets a description of the purpose of this TestSuite |
java.lang.String |
getName()
gets the name of this suite |
java.lang.String |
getNameNoSpaces()
gets the name of this suite with underscores in place of spaces |
ScoringRuleset |
getScoringRuleset()
gets the rules for scoring the service |
Service |
getService()
gets the service being tested by this suite |
java.lang.String |
getServiceDescription()
gets a description of the service |
java.lang.String |
getServiceName()
gets the name of the service |
TestItem |
getTestItem(int index)
Gets the specified TestItem |
java.util.Vector<TestItem> |
getTestItems()
gets the items being tested |
boolean |
hasRule(java.lang.String ruleName)
Determines whether or not this TestSuite contains a rule with the specified name |
void |
removeTestItem(int index)
Removes the TestItem from this TestSuite |
void |
setDescription(java.lang.String description)
sets a description of the purpose of this TestSuite |
void |
setName(java.lang.String name)
sets name of this TestSuite |
java.lang.String |
toString()
returns the name of this test suite |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestSuite(Service service)
service
- the service being tested by this suite; will be used to instantiate TestsMethod Detail |
---|
public int compareTo(TestSuite anotherTestSuite)
compareTo
in interface java.lang.Comparable<TestSuite>
anotherTestSuite
- the TestSuite to be compared
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean hasRule(java.lang.String ruleName)
ruleName
- the name of the rule to check for
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
public java.lang.String getNameNoSpaces()
public void setName(java.lang.String name) throws IllegalArgValException
IllegalArgValException
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public Service getService()
public void addTestItem(TestItem ti)
ti
- the TestItem to add to this TestSuitepublic void removeTestItem(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- remove the TestItem at the specified index.
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public TestItem getTestItem(int index) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public java.util.Vector<TestItem> getTestItems()
public ScoringRuleset getScoringRuleset()
public java.lang.String getServiceName()
public java.lang.String getServiceDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |