diff --git a/src/test/org/apache/lucene/search/TestTopScoreDocCollector.java b/src/test/org/apache/lucene/search/TestTopScoreDocCollector.java index ff01c52e424..3ab3f37a84d 100644 --- a/src/test/org/apache/lucene/search/TestTopScoreDocCollector.java +++ b/src/test/org/apache/lucene/search/TestTopScoreDocCollector.java @@ -67,7 +67,7 @@ public class TestTopScoreDocCollector extends LuceneTestCase { IndexSearcher searcher = new IndexSearcher(dir); for (int i = 0; i < inOrder.length; i++) { TopDocsCollector tdc = TopScoreDocCollector.create(3, inOrder[i]); - assertEquals(actualTSDCClass[i], tdc.getClass().getSimpleName()); + assertEquals("org.apache.lucene.search.TopScoreDocCollector$" + actualTSDCClass[i], tdc.getClass().getName()); searcher.search(new MatchAllDocsQuery(), tdc);