@Test
public void testEditDistanceComparator() {
String control = "<HTML><head><title>Test</title></head><body>test</body><HTML>";
String test = "<HTML><head><title>Test</title></head><body>test</body><HTML>";
assertTrue(control.equals(test));
compareTwoDomsWithComparatorEqual(control, test, new EditDistanceComparator(0));
compareTwoDomsWithComparatorEqual(control, test, new EditDistanceComparator(1));
test = "TheIsAlotOfRubish";
compareTwoDomsWithComparatorNotEqual(control, test, new EditDistanceComparator(1));
compareTwoDomsWithComparatorEqual(control, test, new EditDistanceComparator(0));
// We miss the title
test = "<HTML><head></head><body>test</body><HTML>";
Comparator oracle = new EditDistanceComparator(0.5);
compareTwoDomsWithComparatorEqual(control, test, oracle);
compareTwoDomsWithComparatorNotEqual(control, test, new EditDistanceComparator(1));
compareTwoDomsWithComparatorEqual(control, test, new EditDistanceComparator(0));
}