make base classes tests abstract

(for intellij)
This commit is contained in:
Shay Banon 2013-07-24 17:28:51 +02:00
parent a3c3d4073b
commit 9f57f26be4
2 changed files with 20 additions and 17 deletions

View File

@ -21,7 +21,10 @@ package org.elasticsearch.test.integration;
import com.carrotsearch.randomizedtesting.JUnit4MethodProvider;
import com.carrotsearch.randomizedtesting.RandomizedTest;
import com.carrotsearch.randomizedtesting.ThreadFilter;
import com.carrotsearch.randomizedtesting.annotations.*;
import com.carrotsearch.randomizedtesting.annotations.Listeners;
import com.carrotsearch.randomizedtesting.annotations.TestMethodProviders;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope;
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakScope.Scope;
import org.apache.lucene.util.LuceneJUnit3MethodProvider;
import org.apache.lucene.util.LuceneTestCase;
@ -30,17 +33,18 @@ import org.elasticsearch.common.logging.ESLogger;
import org.elasticsearch.common.logging.Loggers;
import org.elasticsearch.junit.listerners.ReproduceInfoPrinter;
import org.junit.runner.RunWith;
@TestMethodProviders({
LuceneJUnit3MethodProvider.class,
JUnit4MethodProvider.class
})
LuceneJUnit3MethodProvider.class,
JUnit4MethodProvider.class
})
@Listeners({
ReproduceInfoPrinter.class
ReproduceInfoPrinter.class
})
@ThreadLeakFilters(defaultFilters = true, filters = {ElasticsearchTestCase.ElasticSearchThreadFilter.class})
@ThreadLeakScope(Scope.NONE)
@RunWith(value = com.carrotsearch.randomizedtesting.RandomizedRunner.class)
public class ElasticsearchTestCase extends RandomizedTest {
public abstract class ElasticsearchTestCase extends RandomizedTest {
public static final Version TEST_VERSION_CURRENT = LuceneTestCase.TEST_VERSION_CURRENT;
@ -56,8 +60,8 @@ public class ElasticsearchTestCase extends RandomizedTest {
@Override
public boolean reject(Thread t) {
return true;
return true;
}
}
}
}

View File

@ -27,8 +27,7 @@ import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilde
/**
*
*/
public class AbstractZenNodesTests extends AbstractNodesTests {
public abstract class AbstractZenNodesTests extends AbstractNodesTests {
@Override
protected final Settings getClassDefaultSettings() {