lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r884407 - /lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestContentStreamDataSource.java
Date Thu, 26 Nov 2009 06:09:49 GMT
Author: noble
Date: Thu Nov 26 06:09:48 2009
New Revision: 884407

URL: http://svn.apache.org/viewvc?rev=884407&view=rev
Log:
SOLR-1600

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestContentStreamDataSource.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestContentStreamDataSource.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestContentStreamDataSource.java?rev=884407&r1=884406&r2=884407&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestContentStreamDataSource.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/test/java/org/apache/solr/handler/dataimport/TestContentStreamDataSource.java
Thu Nov 26 06:09:48 2009
@@ -28,6 +28,7 @@
 import org.apache.solr.util.AbstractSolrTestCase;
 
 import java.io.File;
+import java.util.List;
 
 /**
  * Test for ContentStreamDataSource
@@ -64,7 +65,7 @@
     assertEquals(2, results.getNumFound());
     SolrDocument doc = results.get(0);
     assertEquals("1", doc.getFieldValue("id"));
-    assertEquals("Hello C1", doc.getFieldValue("desc"));
+    assertEquals("Hello C1", ((List)doc.getFieldValue("desc")).get(0));
   }
 
   private class SolrInstance extends AbstractSolrTestCase {



Mime
View raw message