Code example for SortedSet

Methods: comparator, equals

0
        } 
        if (o == null || getClass() != o.getClass()) {
            return false; 
        } 
        JUnit4TestGrouping other = (JUnit4TestGrouping) o;
        if (!this.testCaseClasses.equals(other.testCaseClasses)) {
            return false; 
        } 
        return this.testCaseClasses.comparator().equals(other.testCaseClasses.comparator());
    } 
 
    public int hashCode() { 
        return testCaseClasses.hashCode();
    } 
 
    /** 
     * Include all tests in the given packages and all their sub-packages, unless otherwise 
     * specified. Each of the given packages must contain at least one test class, either directly 
     * or in a sub-package. 
     * 
     * @param packageNames Names of packages to add.