Remove redundant GerritTestName declarations in Elasticsearch tests
The @Rule declarations of GerritTestName are done in the base classes and cause 'hiding' warnings when they are also declared in the concrete test implementation classes. Change-Id: I6b1a82c4ef03b75d6e03a33ad89ac721c6ef5edf
This commit is contained in:
@@ -17,7 +17,6 @@ package com.google.gerrit.elasticsearch;
|
||||
import com.google.gerrit.elasticsearch.ElasticTestUtils.ElasticNodeInfo;
|
||||
import com.google.gerrit.server.query.project.AbstractQueryProjectsTest;
|
||||
import com.google.gerrit.testing.ConfigSuite;
|
||||
import com.google.gerrit.testing.GerritTestName;
|
||||
import com.google.gerrit.testing.InMemoryModule;
|
||||
import com.google.gerrit.testing.IndexConfig;
|
||||
import com.google.inject.Guice;
|
||||
@@ -25,7 +24,6 @@ import com.google.inject.Injector;
|
||||
import org.eclipse.jgit.lib.Config;
|
||||
import org.junit.AfterClass;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Rule;
|
||||
|
||||
public class ElasticV6QueryProjectsTest extends AbstractQueryProjectsTest {
|
||||
@ConfigSuite.Default
|
||||
@@ -54,8 +52,6 @@ public class ElasticV6QueryProjectsTest extends AbstractQueryProjectsTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Rule public final GerritTestName testName = new GerritTestName();
|
||||
|
||||
@Override
|
||||
protected void initAfterLifecycleStart() throws Exception {
|
||||
super.initAfterLifecycleStart();
|
||||
|
Reference in New Issue
Block a user