|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.smartics.testdoc.core.doc.UnitTestDocIndex
@ThreadSafe public class UnitTestDocIndex
The index of all collected unit test documentation instances.
Constructor Summary | |
---|---|
UnitTestDocIndex() Default constructor. |
Method Summary | |
---|---|
void |
clear() Clears the index. |
void |
deregisterTestCase(Type testCaseType) Removes all scenarios of the given test case type. |
UnitTestDoc |
get(Type uutType) Returns the unit test documentation for the given UUT type. |
List<UnitTestDoc> |
getByTestCase(Type testCaseType) Returns the list of UUT documentation whose UUT is tested by the given test case. |
Integer |
getSize() Returns the number of registered unit test documentation. |
List<UnitTestDoc> |
getUnitTestDocs() Returns a copy of the internal map that contains the test documentation instances. |
boolean |
isEmpty() Checks whether the index contains elements or not. |
UnitTestDoc |
register(UnitTestDoc unitTestDoc) Registers the given test documentation to the index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnitTestDocIndex()
Method Detail |
---|
public List<UnitTestDoc> getUnitTestDocs()
public Integer getSize()
public boolean isEmpty()
true
if there is at least on element in the index,
false
otherwise.
public UnitTestDoc register(UnitTestDoc unitTestDoc) throws NullPointerException
testDoc
is added to the already registered instance.
unitTestDoc
- the test documentation to add.
NullPointerException
- if
testDoc
is
null
.
public UnitTestDoc get(Type uutType)
uutType
- the type of the UUT whose test documentation is requested.
null
if nothing is registered for that type.
public List<UnitTestDoc> getByTestCase(Type testCaseType)
testCaseType
- the type of the test case whose UUT documentation is requested.
public void deregisterTestCase(Type testCaseType) throws org.apache.commons.lang.NullArgumentException
testCaseType
- the type of the test case whose scenario are to be removed.
org.apache.commons.lang.NullArgumentException
- if
testCaseType
is
null
.
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |