|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.testdoc.core.doc.ScenarioTestDoc
public final class ScenarioTestDoc
The test documentation of a single scenario of a unit-under-test.
Constructor Summary | |
---|---|
ScenarioTestDoc(String uutMethod, String testCaseType, TestMethodDoc testMethod) Convenience constructor specifying the test case type as a String . |
|
ScenarioTestDoc(String uutMethod, String testCaseType, TestMethodDoc testMethod, List<String> categories) Convenience constructor specifying the test case type as a String . |
|
ScenarioTestDoc(String testCaseType, TestMethodDoc testMethod) Convenience constructor specifying the test case type as a String . |
|
ScenarioTestDoc(String uutMethod, Type testCaseType, TestMethodDoc testMethod) Convenience constructor. |
|
ScenarioTestDoc(String uutMethod, Type testCaseType, TestMethodDoc testMethod, List<String> categories, SortKey sortKey) Default constructor. |
|
ScenarioTestDoc(Type testCaseType, TestMethodDoc testMethod, List<String> categories) Convenience constructor. |
Method Summary | |
---|---|
int |
compareTo(ScenarioTestDoc other) The natural order is defined by the SortKey property. |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
List<String> |
getCategories() Returns the categories of the scenario. |
String |
getId() Returns a unique identifier for a test method. |
SortKey |
getSortKey() Returns the sort key defining the natural order of scenarios. |
Type |
getTestCaseType() Returns the type of the test case the test has been specified in. |
TestMethodDoc |
getTestMethod() Returns the test method of a scenario. |
String |
getUutMethod() Returns the name of the method under test. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScenarioTestDoc(String testCaseType, TestMethodDoc testMethod) throws IllegalArgumentException
String
.
testCaseType
- the type of the test case the test has been specified in.
testMethod
- the test method of a scenario.
IllegalArgumentException
- if
testCaseType
is
null
or
testName
or
testSentence
is blank.
public ScenarioTestDoc(String uutMethod, String testCaseType, TestMethodDoc testMethod) throws IllegalArgumentException
String
.
uutMethod
- the name of the method under test.
testCaseType
- the type of the test case the test has been specified in.
testMethod
- the test method of a scenario.
IllegalArgumentException
- if
testCaseType
is
null
or
testName
or
testSentence
is blank.
public ScenarioTestDoc(String uutMethod, String testCaseType, TestMethodDoc testMethod, List<String> categories) throws IllegalArgumentException
String
.
uutMethod
- the name of the method under test.
testCaseType
- the type of the test case the test has been specified in.
testMethod
- the test method of a scenario.
categories
- the categories of the scenario.
IllegalArgumentException
- if
testCaseType
is
null
or
testName
or
testSentence
is blank.
public ScenarioTestDoc(String uutMethod, Type testCaseType, TestMethodDoc testMethod) throws IllegalArgumentException
uutMethod
- the name of the method under test.
testCaseType
- the type of the test case the test has been specified in.
testMethod
- the test method of a scenario.
IllegalArgumentException
- if
testCaseType
or
testMethod
is
null
.
public ScenarioTestDoc(Type testCaseType, TestMethodDoc testMethod, List<String> categories) throws IllegalArgumentException
testCaseType
- the type of the test case the test has been specified in.
testMethod
- the test method of a scenario.
categories
- the categories of the scenario. May be
null
.
IllegalArgumentException
- if
testCaseType
or
testMethod
is
null
.
public ScenarioTestDoc(String uutMethod, Type testCaseType, TestMethodDoc testMethod, List<String> categories, SortKey sortKey) throws IllegalArgumentException
uutMethod
- the name of the method under test.
testCaseType
- the type of the test case the test has been specified in.
testMethod
- the test method of a scenario.
categories
- the categories of the scenario. May be
null
.
sortKey
- the sort key defining the natural order of scenarios.
IllegalArgumentException
- if
testCaseType
,
testMethod
, or
sortKey
is
null
.
Method Detail |
---|
public String getUutMethod()
public String getId()
public Type getTestCaseType()
null
.
public TestMethodDoc getTestMethod()
public List<String> getCategories()
public SortKey getSortKey()
public int hashCode()
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public int compareTo(ScenarioTestDoc other)
The natural order is defined by the SortKey
property.
compareTo
in interface
Comparable<ScenarioTestDoc>
Comparable.compareTo(java.lang.Object)
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |