LUCENE-1522 turn on unit tests that had relied on LUCENE-1448 and LUCENE-1759

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@800120 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-08-02 18:07:43 +00:00
parent 3c586d3528
commit 487278cf92
5 changed files with 9 additions and 25 deletions

View File

@ -206,10 +206,14 @@ public abstract class AbstractTestCase extends TestCase {
return true;
}
public int getFinalOffset() {
private int getFinalOffset() {
return nextStartOffset;
}
public final void end(){
offsetAtt.setOffset(getFinalOffset(),getFinalOffset());
}
protected boolean getNextPartialSnippet() throws IOException {
if( snippet != null && snippet.length() >= startTerm + 1 + n ){
startTerm++;

View File

@ -164,11 +164,7 @@ public class FieldPhraseListTest extends AbstractTestCase {
assertEquals( "searchengines(1.0)((102,116))", fpl.phraseList.get( 0 ).toString() );
assertEquals( "searchengines(1.0)((157,171))", fpl.phraseList.get( 1 ).toString() );
}
/*
* ----------------------------------
* THIS TEST DEPENDS ON LUCENE-1448
* UNCOMMENT WHEN IT IS COMMITTED.
* ----------------------------------
public void test1PhraseLongMVB() throws Exception {
makeIndexLongMVB();
@ -178,5 +174,4 @@ public class FieldPhraseListTest extends AbstractTestCase {
assertEquals( 1, fpl.phraseList.size() );
assertEquals( "sppeeeed(1.0)((88,93))", fpl.phraseList.get( 0 ).toString() );
}
*/
}

View File

@ -146,11 +146,7 @@ public class FieldTermStackTest extends AbstractTestCase {
assertEquals( "search(157,163,24)", stack.pop().toString() );
assertEquals( "engines(164,171,25)", stack.pop().toString() );
}
/*
* ----------------------------------
* THIS TEST DEPENDS ON LUCENE-1448
* UNCOMMENT WHEN IT IS COMMITTED.
* ----------------------------------
public void test1PhraseMVB() throws Exception {
makeIndexLongMVB();
@ -162,5 +158,4 @@ public class FieldTermStackTest extends AbstractTestCase {
assertEquals( "ee(90,92,63)", stack.pop().toString() );
assertEquals( "ed(91,93,64)", stack.pop().toString() );
}
*/
}

View File

@ -142,11 +142,7 @@ public class SimpleFragListBuilderTest extends AbstractTestCase {
assertEquals( 1, ffl.fragInfos.size() );
assertEquals( "subInfos=(searchengines((102,116))searchengines((157,171)))/2.0(96,196)", ffl.fragInfos.get( 0 ).toString() );
}
/*
* ----------------------------------
* THIS TEST DEPENDS ON LUCENE-1448
* UNCOMMENT WHEN IT IS COMMITTED.
* ----------------------------------
public void test1PhraseLongMVB() throws Exception {
makeIndexLongMVB();
@ -158,5 +154,4 @@ public class SimpleFragListBuilderTest extends AbstractTestCase {
assertEquals( 1, ffl.fragInfos.size() );
assertEquals( "subInfos=(sppeeeed((88,93)))/1.0(82,182)", ffl.fragInfos.get( 0 ).toString() );
}
*/
}

View File

@ -84,11 +84,7 @@ public class SimpleFragmentsBuilderTest extends AbstractTestCase {
assertEquals( " most <b>search engines</b> use only one of these methods. Even the <b>search engines</b> that says they can use t",
sfb.createFragment( reader, 0, F, ffl ) );
}
/*
* ----------------------------------
* THIS TEST DEPENDS ON LUCENE-1448
* UNCOMMENT WHEN IT IS COMMITTED.
* ----------------------------------
public void test1PhraseLongMVB() throws Exception {
makeIndexLongMVB();
@ -100,5 +96,4 @@ public class SimpleFragmentsBuilderTest extends AbstractTestCase {
SimpleFragmentsBuilder sfb = new SimpleFragmentsBuilder();
assertEquals( "ssing <b>speed</b>, the", sfb.createFragment( reader, 0, F, ffl ) );
}
*/
}