/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/ |
H A D | TestDuelingAnalyzers.java | 54 assertEquals(s, left.tokenStream("foo", newStringReader(s)), 74 assertEquals(s, left.tokenStream("foo", newStringReader(s)), 90 assertEquals(s, left.tokenStream("foo", newStringReader(s)), 109 assertEquals(s, left.tokenStream("foo", newStringReader(s)), 125 assertEquals(s, left.tokenStream("foo", newStringReader(s)), 144 assertEquals(s, left.tokenStream("foo", newStringReader(s)), 151 public void assertEquals(String s, TokenStream left, TokenStream right) throws Exception { method in class:TestDuelingAnalyzers 163 assertEquals("wrong term text for input: " + s, leftTerm.toString(), rightTerm.toString()); 164 assertEquals("wrong position for input: " + s, leftPos.getPositionIncrement(), rightPos.getPositionIncrement()); 165 assertEquals("wron [all...] |
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestMultiTermConstantScore.java | 47 static public void assertEquals(String m, float e, float a) { method in class:TestMultiTermConstantScore 48 Assert.assertEquals(m, e, a, SCORE_COMP_THRESH); 51 static public void assertEquals(String m, int e, int a) { method in class:TestMultiTermConstantScore 52 Assert.assertEquals(m, e, a); 164 assertEquals("wrong number of results", 6, numHits); 167 assertEquals("score for " + i + " was not the same", score, 173 assertEquals("wrong number of results", 6, numHits); 175 assertEquals("score for " + i + " was not the same", score, 201 assertEquals("score for doc " + (doc + base) + " was not correct", 1.0f, scorer.score(), SCORE_COMP_THRESH); 225 Assert.assertEquals( [all...] |
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestMultiTermConstantScore.java | 47 static public void assertEquals(String m, float e, float a) { method in class:TestMultiTermConstantScore 48 Assert.assertEquals(m, e, a, SCORE_COMP_THRESH); 51 static public void assertEquals(String m, int e, int a) { method in class:TestMultiTermConstantScore 52 Assert.assertEquals(m, e, a); 164 assertEquals("wrong number of results", 6, numHits); 167 assertEquals("score for " + i + " was not the same", score, 173 assertEquals("wrong number of results", 6, numHits); 175 assertEquals("score for " + i + " was not the same", score, 201 assertEquals("score for doc " + (doc + base) + " was not correct", 1.0f, scorer.score(), SCORE_COMP_THRESH); 225 Assert.assertEquals( [all...] |
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/util/ |
H A D | _TestUtil.java | 423 Assert.assertEquals("Reflection does not produce same map", reflectedValues, map); 486 public static void assertEquals(TopDocs expected, TopDocs actual) { method in class:_TestUtil 487 Assert.assertEquals("wrong total hits", expected.totalHits, actual.totalHits); 488 Assert.assertEquals("wrong maxScore", expected.getMaxScore(), actual.getMaxScore(), 0.0); 489 Assert.assertEquals("wrong hit count", expected.scoreDocs.length, actual.scoreDocs.length); 493 Assert.assertEquals("wrong hit docID", expectedSD.doc, actualSD.doc); 494 Assert.assertEquals("wrong hit score", expectedSD.score, actualSD.score, 0.0);
|
H A D | LuceneTestCase.java | 651 assertEquals(msg + ": Insane FieldCache usage(s) found", 709 static public void assertEquals(double expected, double actual) { method in class:LuceneTestCase 710 assertEquals(null, expected, actual); 714 static public void assertEquals(String message, double expected, double actual) { method in class:LuceneTestCase 715 assertEquals(message, Double.valueOf(expected), Double.valueOf(actual)); 719 static public void assertEquals(float expected, float actual) { method in class:LuceneTestCase 720 assertEquals(null, expected, actual); 724 static public void assertEquals(String message, float expected, float actual) { method in class:LuceneTestCase 725 assertEquals(message, Float.valueOf(expected), Float.valueOf(actual));
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/test/org/apache/lucene/analysis/synonym/ |
H A D | TestSynonymMapFilter.java | 57 private void assertEquals(CharTermAttribute term, String expected) { method in class:TestSynonymMapFilter 58 assertEquals(expected.length(), term.length()); 61 assertEquals(expected.charAt(chIDX), buffer[chIDX]); 109 assertEquals(expectedToken, termAtt.toString()); 110 assertEquals(atPos == 0 ? 1 : 0, 114 assertEquals(startOffset, offsetAtt.startOffset()); 115 assertEquals(expectedEndOffset, offsetAtt.endOffset()); 123 assertEquals(expectedUpto, expected.length); 180 assertEquals(0, tokensOut.getCaptureCount()); 185 assertEquals( [all...] |
/lucene-3.6.0/lucene/contrib/grouping/src/test/org/apache/lucene/search/grouping/ |
H A D | TestGrouping.java | 115 assertEquals(7, groups.totalHitCount); 116 assertEquals(7, groups.totalGroupedHitCount); 117 assertEquals(4, groups.groups.length); 124 assertEquals("author3", group.groupValue); 125 assertEquals(2, group.scoreDocs.length); 126 assertEquals(5, group.scoreDocs[0].doc); 127 assertEquals(4, group.scoreDocs[1].doc); 131 assertEquals("author1", group.groupValue); 132 assertEquals(3, group.scoreDocs.length); 133 assertEquals( 929 private void assertEquals(Collection<SearchGroup<String>> groups1, Collection<SearchGroup<String>> groups2, boolean doSortValues) { method in class:TestGrouping 1044 private void assertEquals(int[] docIDtoID, TopGroups expected, TopGroups actual, boolean verifyGroupValues, boolean verifyTotalGroupCount, boolean verifySortValues, boolean testScores) { method in class:TestGrouping [all...] |
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/util/ |
H A D | _TestUtil.java | 628 Assert.assertEquals("Reflection does not produce same map", reflectedValues, map); 691 public static void assertEquals(TopDocs expected, TopDocs actual) { method in class:_TestUtil 692 Assert.assertEquals("wrong total hits", expected.totalHits, actual.totalHits); 693 Assert.assertEquals("wrong maxScore", expected.getMaxScore(), actual.getMaxScore(), 0.0); 694 Assert.assertEquals("wrong hit count", expected.scoreDocs.length, actual.scoreDocs.length); 698 Assert.assertEquals("wrong hit docID", expectedSD.doc, actualSD.doc); 699 Assert.assertEquals("wrong hit score", expectedSD.score, actualSD.score, 0.0);
|
H A D | LuceneTestCase.java | 806 assertEquals(msg + ": Insane FieldCache usage(s) found", 864 static public void assertEquals(double expected, double actual) { method in class:LuceneTestCase 865 assertEquals(null, expected, actual); 869 static public void assertEquals(String message, double expected, double actual) { method in class:LuceneTestCase 870 assertEquals(message, Double.valueOf(expected), Double.valueOf(actual)); 874 static public void assertEquals(float expected, float actual) { method in class:LuceneTestCase 875 assertEquals(null, expected, actual); 879 static public void assertEquals(String message, float expected, float actual) { method in class:LuceneTestCase 880 assertEquals(message, Float.valueOf(expected), Float.valueOf(actual));
|