/* File:            $Id$
 * Revision:        $Revision$
 * Author:          $Author$
 * Date:            $Date$
 *
 * The Netarchive Suite - Software to harvest and preserve websites
 * Copyright 2004-2010 Det Kongelige Bibliotek and Statsbiblioteket, Denmark
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
package dk.netarkivet;

import java.util.HashSet;
import java.util.Set;

import org.testng.Assert;

public class NASAssert extends Assert {

  public static void assertEquals(Set<Object> expectedSet, Set<Object> resultSet) {
    Set<Object> disjunctInExpectedSet = new HashSet<Object>(expectedSet);
    disjunctInExpectedSet.removeAll(resultSet);

    Set<Object> disjunctInResultSet = 
      new HashSet<Object>(resultSet);
    disjunctInResultSet.removeAll(expectedSet);

    if (!disjunctInExpectedSet.isEmpty() || !disjunctInResultSet.isEmpty()) {
            fail("Set not equal, Expected set contained the following " 
                    + disjunctInExpectedSet.size() + " elements "
                    + " not found in the result set:\n" + disjunctInExpectedSet
                    + "\nand the following " +  disjunctInResultSet.size 
                    + " elements in the result set where not"
                    + " found in the expected set\n" + disjunctInResultSet);
        }
  }
}

@@ -1844,17 +1844,18 @@
 Set.size
- 
+()
 %0A       

Fix compile error.