From e8eaf479c386290a7f7fc836b4d868d872fe0998 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Wed, 11 Mar 2015 15:19:01 +0000 Subject: [PATCH] Merged revision(s) 1665899 from lucene/dev/branches/branch_5x: SOLR-7228: fix test ........ git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1665900 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/solr/handler/FieldAnalysisRequestHandlerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/handler/FieldAnalysisRequestHandlerTest.java b/solr/core/src/test/org/apache/solr/handler/FieldAnalysisRequestHandlerTest.java index bea0603928f..96b9574328d 100644 --- a/solr/core/src/test/org/apache/solr/handler/FieldAnalysisRequestHandlerTest.java +++ b/solr/core/src/test/org/apache/solr/handler/FieldAnalysisRequestHandlerTest.java @@ -1,4 +1,4 @@ -/* +/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. @@ -423,6 +423,6 @@ public class FieldAnalysisRequestHandlerTest extends AnalysisRequestHandlerTestB ((NamedList)result.get("field_types").get("location_rpt")).get("index"); List tokenList = tokens.get("org.apache.lucene.spatial.prefix.BytesRefIteratorTokenStream"); - assertEquals("s", tokenList.get(0).get("text") ); + assertTrue( tokenList.get(0).get("text").toString().startsWith("s") ); } }