Upgraded to Apache Lucene 4.6.1. The method BaseTokenStreamTestCase.checkOneTermReuse was removed in http://svn.apache.org/viewvc?view=revision&revision=1525362, updated copied test case accordingly.

Former-commit-id: 0344bfcec4a08040eb693ca49c91218badbb2c96
This commit is contained in:
Hans Joachim Desserud
2015-01-02 17:41:04 +01:00
parent 3e3a8e9f98
commit 6394c1a7b4
2 changed files with 2 additions and 26 deletions

View File

@@ -728,6 +728,6 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved.
</profile>
</profiles>
<properties>
<apache.lucene.version>4.5.1</apache.lucene.version>
<apache.lucene.version>4.6.1</apache.lucene.version>
</properties>
</project>

View File

@@ -20,16 +20,10 @@ package org.owasp.dependencycheck.data.lucene;
import java.io.IOException;
import java.io.Reader;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Analyzer.TokenStreamComponents;
import org.apache.lucene.analysis.BaseTokenStreamTestCase;
import static org.apache.lucene.analysis.BaseTokenStreamTestCase.checkOneTerm;
import org.apache.lucene.analysis.MockTokenizer;
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.core.KeywordTokenizer;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
/**
*
@@ -50,24 +44,6 @@ public class UrlTokenizingFilterTest extends BaseTokenStreamTestCase {
};
}
@BeforeClass
public static void setUpClass() {
}
@AfterClass
public static void tearDownClass() {
}
@Before
public void setUp() throws Exception {
super.setUp();
}
@After
public void tearDown() throws Exception {
super.tearDown();
}
/**
* test some example domains
*/
@@ -102,6 +78,6 @@ public class UrlTokenizingFilterTest extends BaseTokenStreamTestCase {
return new TokenStreamComponents(tokenizer, new UrlTokenizingFilter(tokenizer));
}
};
checkOneTermReuse(a, "", "");
checkOneTerm(a, "", "");
}
}