From 16cb338474e7497d04aecc20c318a9adb5402384 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Wed, 24 Mar 2010 16:14:06 +0000 Subject: [PATCH] test: don't spin up embedded core if not needed, and close jetty when done git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@927107 13f79535-47bb-0310-9956-ffa450edef68 --- .../client/solrj/response/TestSpellCheckResponse.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java b/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java index db14586dafa..2c06aaa0c5d 100644 --- a/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java +++ b/solr/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java @@ -36,6 +36,8 @@ import java.util.List; * @since solr 1.3 */ public class TestSpellCheckResponse extends SolrExampleTestBase { + @Override public String getSchemaFile() { return null; } + @Override public String getSolrConfigFile() { return null; } SolrServer server; JettySolrRunner jetty; @@ -45,6 +47,7 @@ public class TestSpellCheckResponse extends SolrExampleTestBase { static String field = "name"; + @Override public void setUp() throws Exception { super.setUp(); @@ -55,6 +58,12 @@ public class TestSpellCheckResponse extends SolrExampleTestBase { server = this.createNewSolrServer(); } + @Override + public void tearDown() throws Exception { + jetty.stop(); + super.tearDown(); + } + public void testSpellCheckResponse() throws Exception { SolrInputDocument doc = new SolrInputDocument(); doc.setField("id", "111");