lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r812135 - /lucene/solr/trunk/src/test/org/apache/solr/spelling/SpellingQueryConverterTest.java
Date Mon, 07 Sep 2009 13:40:48 GMT
Author: shalin
Date: Mon Sep  7 13:40:48 2009
New Revision: 812135

URL: http://svn.apache.org/viewvc?rev=812135&view=rev
Log:
SpellingQueryConverterTest does not need to extend AbstractSolrTestCase

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/spelling/SpellingQueryConverterTest.java  
(contents, props changed)

Modified: lucene/solr/trunk/src/test/org/apache/solr/spelling/SpellingQueryConverterTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/spelling/SpellingQueryConverterTest.java?rev=812135&r1=812134&r2=812135&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/spelling/SpellingQueryConverterTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/spelling/SpellingQueryConverterTest.java Mon
Sep  7 13:40:48 2009
@@ -17,29 +17,24 @@
 
 package org.apache.solr.spelling;
 
-import java.util.Collection;
-
 import org.apache.lucene.analysis.Token;
 import org.apache.lucene.analysis.WhitespaceAnalyzer;
 import org.apache.solr.common.util.NamedList;
-import org.apache.solr.util.AbstractSolrTestCase;
+import static org.junit.Assert.assertTrue;
+import org.junit.Test;
+
+import java.util.Collection;
 
 
 /**
+ * Test for SpellingQueryConverter
  *
+ * @version $Id$
  * @since solr 1.3
- **/
-public class SpellingQueryConverterTest extends AbstractSolrTestCase {
-
-  public String getSchemaFile() {
-    return "schema.xml";
-  }
-
-  public String getSolrConfigFile() {
-    return "solrconfig.xml";
-  }
-
+ */
+public class SpellingQueryConverterTest {
 
+  @Test
   public void test() throws Exception {
     SpellingQueryConverter converter = new SpellingQueryConverter();
     converter.init(new NamedList());
@@ -48,6 +43,4 @@
     assertTrue("tokens is null and it shouldn't be", tokens != null);
     assertTrue("tokens Size: " + tokens.size() + " is not: " + 1, tokens.size() == 1);
   }
-
-
 }

Propchange: lucene/solr/trunk/src/test/org/apache/solr/spelling/SpellingQueryConverterTest.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Date URL



Mime
View raw message