|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcdx.scorebot.app.util.TestInfo
public class TestInfo
Stores information about a particular test
Constructor Summary | |
---|---|
TestInfo()
Instantiates a TestInfo |
Method Summary | |
---|---|
void |
addOption(OptionInfo oi)
Adds an option to be tested. |
void |
addResult(ResultInfo ri)
Adds a result to be tested. |
java.lang.String |
getDescription()
gets the description of this test |
java.lang.String |
getName()
gets the name of this test |
OptionInfo |
getOption(int index)
Gets the specified option |
java.util.Vector<OptionInfo> |
getOptions()
gets the options in this test |
ResultInfo |
getResult(int index)
Gets the specified result |
java.util.Vector<ResultInfo> |
getResults()
gets the results in this test |
Test |
getTestFactory()
gets the test |
void |
removeOption(int index)
Removes the option from this test |
boolean |
removeOption(OptionInfo oi)
Removes the option from this test |
void |
removeResult(int index)
Removes the result from this test |
boolean |
removeResult(ResultInfo ri)
Removes the result from this test |
void |
setDescription(java.lang.String desc)
sets the description of this test |
void |
setName(java.lang.String name)
sets the name of this test |
void |
setTestFactory(Test test)
sets the test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestInfo()
Method Detail |
---|
public Test getTestFactory()
public void setTestFactory(Test test)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDescription()
public void setDescription(java.lang.String desc)
public void addOption(OptionInfo oi)
oi
- the option to add to this testpublic void removeOption(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- remove the option at the specified index.
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public boolean removeOption(OptionInfo oi)
oi
- the OptionInfo to remove
public OptionInfo getOption(int index) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public java.util.Vector<OptionInfo> getOptions()
public void addResult(ResultInfo ri)
ri
- the result to add to this testpublic void removeResult(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- remove the result at the specified index.
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public boolean removeResult(ResultInfo ri)
ri
- the ResultInfo to remove
public ResultInfo getResult(int index) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
- if the index was invalid.public java.util.Vector<ResultInfo> getResults()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |