LUCENE-5088: Fixed test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1503837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Martijn van Groningen 2013-07-16 19:15:24 +00:00
parent 95f9b493a1
commit 62e9f6a80a
1 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class TermFilterTest extends LuceneTestCase {
String field1 = "field" + i;
String field2 = "field" + i + num;
String value1 = _TestUtil.randomRealisticUnicodeString(random());
String value2 = _TestUtil.randomRealisticUnicodeString(random());
String value2 = _TestUtil.randomRealisticUnicodeString(random()) + "x"; // this must be not equal to value1
TermFilter filter1 = termFilter(field1, value1);
TermFilter filter2 = termFilter(field1, value2);
@ -139,6 +139,8 @@ public class TermFilterTest extends LuceneTestCase {
assertEquals(termFilter.hashCode(), otherTermFilter.hashCode());
assertTrue(termFilter.equals(otherTermFilter));
} else {
System.out.println(termFilter);
System.out.println(otherTermFilter);
assertFalse(termFilter.equals(otherTermFilter));
}
}