"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "analysis/common/src/test/org/apache/lucene/analysis/payloads/TestDelimitedPayloadTokenFilterFactory.java" between
lucene-7.6.0-src.tgz and lucene-7.7.0-src.tgz

About: Lucene is a Java full-text search engine (not a complete application, but rather a code library and API; java source code).

TestDelimitedPayloadTokenFilterFactory.java  (lucene-7.6.0-src.tgz):TestDelimitedPayloadTokenFilterFactory.java  (lucene-7.7.0-src.tgz)
skipping to change at line 25 skipping to change at line 25
* limitations under the License. * limitations under the License.
*/ */
package org.apache.lucene.analysis.payloads; package org.apache.lucene.analysis.payloads;
import java.io.Reader; import java.io.Reader;
import java.io.StringReader; import java.io.StringReader;
import org.apache.lucene.analysis.MockTokenizer; import org.apache.lucene.analysis.MockTokenizer;
import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.Tokenizer; import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.payloads.PayloadHelper;
import org.apache.lucene.analysis.tokenattributes.PayloadAttribute; import org.apache.lucene.analysis.tokenattributes.PayloadAttribute;
import org.apache.lucene.analysis.util.BaseTokenStreamFactoryTestCase; import org.apache.lucene.analysis.util.BaseTokenStreamFactoryTestCase;
public class TestDelimitedPayloadTokenFilterFactory extends BaseTokenStreamFacto ryTestCase { public class TestDelimitedPayloadTokenFilterFactory extends BaseTokenStreamFacto ryTestCase {
public void testEncoder() throws Exception { public void testEncoder() throws Exception {
Reader reader = new StringReader("the|0.1 quick|0.1 red|0.1"); Reader reader = new StringReader("the|0.1 quick|0.1 red|0.1");
TokenStream stream = new MockTokenizer(MockTokenizer.WHITESPACE, false); TokenStream stream = new MockTokenizer(MockTokenizer.WHITESPACE, false);
((Tokenizer)stream).setReader(reader); ((Tokenizer)stream).setReader(reader);
stream = tokenFilterFactory("DelimitedPayload", "encoder", "float").create(s tream); stream = tokenFilterFactory("DelimitedPayload", "encoder", "float").create(s tream);
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)