Package jetbrains.buildServer.serverSide
Class TestGroupName
- java.lang.Object
-
- jetbrains.buildServer.serverSide.TestGroupName
-
- All Implemented Interfaces:
Comparable<TestGroupName>
public class TestGroupName extends Object implements Comparable<TestGroupName>
This class represents a name for a group of tests.- Since:
- 4.5
-
-
Constructor Summary
Constructors Constructor Description TestGroupName()"Any group" constructorTestGroupName(String suite, String aPackage, String shortClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TestGroupName o)booleanequals(Object o)StringgetClassName()StringgetFullName()Return full test group name, with the same format as for TestName (suite: package.a.ClassName)StringgetPackageName()StringgetSuite()inthashCode()booleanincludes(TestGroupName tg)Return true if this group includes given test group or if groups are equal.booleanisClassNameSet()booleanisEmpty1()Return true if group name is any group namebooleanisPackageSet()booleanisSuiteSet()StringtoString()
-
-
-
Method Detail
-
getSuite
@NotNull public String getSuite()
- Returns:
- suite name or empty string for no suite or * for any suite
-
getPackageName
@NotNull public String getPackageName()
- Returns:
- full package/namespace name or empty string for no package or * for any package
-
getClassName
@NotNull public String getClassName()
- Returns:
- short class name for java-like tests or empty string for no className or * for any className
-
isPackageSet
public boolean isPackageSet()
- Returns:
- true if package name is set and is not empty
-
isClassNameSet
public boolean isClassNameSet()
- Returns:
- true if class name is set and is not empty
-
isSuiteSet
public boolean isSuiteSet()
- Returns:
- true if suite name is set and is not empty
-
isEmpty1
public boolean isEmpty1()
Return true if group name is any group name- Returns:
- see above
-
includes
public boolean includes(TestGroupName tg)
Return true if this group includes given test group or if groups are equal.- Parameters:
tg- the name of the test group which should be tested for belonging to this test group- Returns:
- see above
-
getFullName
@NotNull public String getFullName()
Return full test group name, with the same format as for TestName (suite: package.a.ClassName)- Returns:
- see above
-
compareTo
public int compareTo(TestGroupName o)
- Specified by:
compareToin interfaceComparable<TestGroupName>
-
-