|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.tests.TestName
public class TestName
Represents a test name with suite prefix. If test name matches the following format:
<package name>.<class name>.<test method name>(<additional parameters for data-driven tests>)then additional parameters are available:
Some suite: another: jetbrains.BuildServer.Clasz.test(params) Separator is SUITE_SEPARATOR ': ' Class refactored in 6.5 by Maxim Podkolzine (maxim.podkolzine@jetbrains.com).
| Field Summary | |
|---|---|
static java.lang.String |
SUITE_SEPARATOR
|
| Constructor Summary | |
|---|---|
TestName(java.lang.String testName)
|
|
| Method Summary | |
|---|---|
int |
compareTo(TestName n2)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAsString()
Returns full test name string as it was reported by the test runner |
java.lang.String |
getClassName()
Returns test case class name or empty string |
TestGroupName |
getGroupName()
Returns an object which describes packaging of this test (namely, full suite, package, class) |
java.lang.String |
getNameWithoutParameters()
Returns test name with package and class but without parameters |
java.lang.String |
getPackageName()
Returns the test package name. |
java.lang.String |
getParameters()
Returns additional test parameters specified in test name, or empty string for no parameters |
java.lang.String |
getPrefix()
Returns test prefix, which includes optional suite name and optional package of the test |
java.lang.String |
getPrefixWithSeparator()
Return prefix, which includes suite name and package name. |
java.lang.String |
getShortName()
Returns test name with class name |
java.lang.String |
getSuite()
Returns test suite, which ends with ': ' if suite is presented. |
java.lang.String |
getTestClass()
For java-like tests returns full class name of the test. |
java.lang.String |
getTestMethodName()
Returns name of the test method or empty string |
java.lang.String |
getTestNameWithoutPrefix()
Returns full test name, but without prefix |
java.lang.String |
getTestNameWithParameters()
Returns test name with parameters without class and other parts |
int |
hashCode()
|
boolean |
hasPackage()
Returns true if this test has non-empty package name |
boolean |
isJavaLikeTestName()
Returns true if test name conforms the specified format. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
@NonNls public static final java.lang.String SUITE_SEPARATOR
| Constructor Detail |
|---|
public TestName(@NotNull
java.lang.String testName)
| Method Detail |
|---|
@NotNull public TestGroupName getGroupName()
public boolean isJavaLikeTestName()
public java.lang.String getTestClass()
@NotNull public java.lang.String getShortName()
@NotNull public java.lang.String getPrefixWithSeparator()
@NotNull public java.lang.String getPrefix()
@NotNull public java.lang.String getSuite()
getPrefixWithSeparator()@NotNull public java.lang.String getPackageName()
public boolean hasPackage()
@NotNull public java.lang.String getClassName()
@NotNull public java.lang.String getTestMethodName()
@NotNull public java.lang.String getParameters()
@NotNull public java.lang.String getNameWithoutParameters()
public java.lang.String getTestNameWithParameters()
@NotNull public java.lang.String getAsString()
@NotNull public java.lang.String getTestNameWithoutPrefix()
getPrefixWithSeparator()public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(TestName n2)
compareTo in interface java.lang.Comparable<TestName>public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||