Class TestGroupName

    • Constructor Detail

      • TestGroupName

        public TestGroupName()
        "Any group" constructor
      • TestGroupName

        public TestGroupName​(@NotNull
                             String suite,
                             @NotNull
                             String aPackage,
                             @NotNull
                             String shortClassName)
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object