AbstractDaemonTest: Add notesMigration

AbstractPushForReview and VisibleRefFilterIT both have a notesMigration
member. Move it up to AbstractDaemonTest so it's reused by both, and
can also be reused by other tests in future.

Change-Id: I462bda4ddb0c62139f10ad273360b3987d9b1f2a
This commit is contained in:
David Pursehouse
2015-10-22 17:27:46 +09:00
parent 3ba6273a94
commit 17728b4c56
3 changed files with 4 additions and 8 deletions

View File

@@ -33,7 +33,6 @@ import com.google.gerrit.extensions.common.LabelInfo;
import com.google.gerrit.reviewdb.client.Change;
import com.google.gerrit.server.notedb.NotesMigration;
import com.google.gerrit.testutil.ConfigSuite;
import com.google.inject.Inject;
import org.eclipse.jgit.lib.Config;
import org.eclipse.jgit.revwalk.RevCommit;
@@ -54,9 +53,6 @@ public abstract class AbstractPushForReview extends AbstractDaemonTest {
return NotesMigration.allEnabledConfig();
}
@Inject
private NotesMigration notesMigration;
protected enum Protocol {
// TODO(dborowitz): TEST.
SSH, HTTP