From 999ad98ba6790ddf1f2bcd21b5299d03c812e469 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 7 Sep 2010 02:05:55 +0000 Subject: [PATCH] LUCENE-2611: make test abstract, and name it *TestCase so ant won't execute it git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@993194 13f79535-47bb-0310-9956-ffa450edef68 --- ...actClusteringTest.java => AbstractClusteringTestCase.java} | 2 +- .../solr/handler/clustering/ClusteringComponentTest.java | 2 +- .../clustering/carrot2/CarrotClusteringEngineTest.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/{AbstractClusteringTest.java => AbstractClusteringTestCase.java} (99%) diff --git a/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/AbstractClusteringTest.java b/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/AbstractClusteringTestCase.java similarity index 99% rename from solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/AbstractClusteringTest.java rename to solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/AbstractClusteringTestCase.java index 7c308c3e86f..19d75707254 100644 --- a/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/AbstractClusteringTest.java +++ b/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/AbstractClusteringTestCase.java @@ -25,7 +25,7 @@ import static org.junit.Assert.*; /** * */ -public class AbstractClusteringTest extends SolrTestCaseJ4 { +public abstract class AbstractClusteringTestCase extends SolrTestCaseJ4 { protected static int numberOfDocs = 0; @BeforeClass diff --git a/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/ClusteringComponentTest.java b/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/ClusteringComponentTest.java index 3e338b257f7..fb24b5edc6e 100644 --- a/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/ClusteringComponentTest.java +++ b/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/ClusteringComponentTest.java @@ -34,7 +34,7 @@ import static org.junit.Assert.*; * * **/ -public class ClusteringComponentTest extends AbstractClusteringTest { +public class ClusteringComponentTest extends AbstractClusteringTestCase { @Test public void testComponent() throws Exception { diff --git a/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/carrot2/CarrotClusteringEngineTest.java b/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/carrot2/CarrotClusteringEngineTest.java index bece45d1ae3..d0ca3d84afb 100644 --- a/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/carrot2/CarrotClusteringEngineTest.java +++ b/solr/contrib/clustering/src/test/java/org/apache/solr/handler/clustering/carrot2/CarrotClusteringEngineTest.java @@ -25,7 +25,7 @@ import org.apache.lucene.search.TermQuery; import org.apache.solr.common.params.ModifiableSolrParams; import org.apache.solr.common.params.SolrParams; import org.apache.solr.common.util.NamedList; -import org.apache.solr.handler.clustering.AbstractClusteringTest; +import org.apache.solr.handler.clustering.AbstractClusteringTestCase; import org.apache.solr.handler.clustering.ClusteringComponent; import org.apache.solr.request.LocalSolrQueryRequest; import org.apache.solr.search.DocList; @@ -43,7 +43,7 @@ import static org.junit.Assert.*; * */ @SuppressWarnings("unchecked") -public class CarrotClusteringEngineTest extends AbstractClusteringTest { +public class CarrotClusteringEngineTest extends AbstractClusteringTestCase { @Test public void testCarrotLingo() throws Exception { // Note: the expected number of clusters may change after upgrading Carrot2