jetbrains.buildServer.serverSide
Class TestGroupName

java.lang.Object
  extended by jetbrains.buildServer.serverSide.TestGroupName
All Implemented Interfaces:
java.lang.Comparable<TestGroupName>

public class TestGroupName
extends java.lang.Object
implements java.lang.Comparable<TestGroupName>

This class represents a name for a group of tests.

Since:
4.5

Constructor Summary
TestGroupName()
          "Any group" constructor
TestGroupName(java.lang.String suite, java.lang.String aPackage, java.lang.String shortClassName)
           
 
Method Summary
 int compareTo(TestGroupName o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getClassName()
           
 java.lang.String getFullName()
          Return full test group name, with the same format as for TestName (suite: package.a.ClassName)
 java.lang.String getPackageName()
           
 java.lang.String getSuite()
           
 int hashCode()
           
 boolean includes(TestGroupName tg)
          Return true if this group includes given test group or if groups are equal.
 boolean isClassNameSet()
           
 boolean isEmpty1()
          Return true if group name is any group name
 boolean isPackageSet()
           
 boolean isSuiteSet()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestGroupName

public TestGroupName()
"Any group" constructor


TestGroupName

public TestGroupName(@NotNull
                     java.lang.String suite,
                     @NotNull
                     java.lang.String aPackage,
                     @NotNull
                     java.lang.String shortClassName)
Method Detail

getSuite

@NotNull
public java.lang.String getSuite()
Returns:
suite name or empty string for no suite or * for any suite

getPackageName

@NotNull
public java.lang.String getPackageName()
Returns:
full package/namespace name or empty string for no package or * for any package

getClassName

@NotNull
public java.lang.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 java.lang.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:
compareTo in interface java.lang.Comparable<TestGroupName>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object