|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.testdoc.core.doc.TestMethodDoc
public class TestMethodDoc
Provides information about a test method of a scenario.
Constructor Summary | |
---|---|
TestMethodDoc(String testName, String testSentence, de.smartics.util.source.SourceCodeLocation location, String javadocComment) Default constructor. |
Method Summary | |
---|---|
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
String |
getJavadocComment() Returns the optional Javadoc comment of the test method. |
de.smartics.util.source.SourceCodeLocation |
getLocation() Returns the location of the test. |
String |
getMethodSignature() Returns the signature of the test method. |
String |
getTestName() Returns the name of the test. |
String |
getTestSentence() Returns the name of the test translated to a human readable sentence. |
int |
hashCode() Delegates call to String.hashCode() . |
String |
toString() Delegates call to StringBuilder.toString() . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestMethodDoc(String testName, String testSentence, de.smartics.util.source.SourceCodeLocation location, String javadocComment) throws IllegalArgumentException
testName
- the name of the test.
testSentence
- the name of the test translated to a human readable sentence.
location
- the location of the test.
javadocComment
- the optional Javadoc comment of the test method. May be
null
. If it contains only whitespaces or is empty, the value is silently set to
null
.
IllegalArgumentException
- if
testName
or
testSentence
is blank or
location
is
null
.
Method Detail |
---|
public String getTestName()
null
.
public String getMethodSignature()
getMethodSignature
in interface
de.smartics.util.source.MethodInfo
public String getTestSentence()
public de.smartics.util.source.SourceCodeLocation getLocation()
getLocation
in interface
de.smartics.util.source.MethodInfo
public String getJavadocComment()
null
.
public int hashCode()
String.hashCode()
.
hashCode
in class
Object
String.hashCode()
.
String.hashCode()
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 String toString()
StringBuilder.toString()
.
toString
in class
Object
StringBuilder.toString()
.
StringBuilder.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |