Split off BatchAbandon from Abandon REST handler

Batch abandoning changes is not available over REST, so it is better
suited to another place.

Change-Id: I09562c696e005aee9ea265bb6d2b01a3019482b7
This commit is contained in:
Han-Wen Nienhuys
2017-12-14 01:01:47 +01:00
parent d96ef40576
commit 2a7f5a5239
5 changed files with 117 additions and 76 deletions

View File

@@ -84,7 +84,7 @@ import com.google.gerrit.server.account.AccountCache;
import com.google.gerrit.server.account.Accounts;
import com.google.gerrit.server.account.GroupBackend;
import com.google.gerrit.server.account.GroupCache;
import com.google.gerrit.server.change.Abandon;
import com.google.gerrit.server.change.BatchAbandon;
import com.google.gerrit.server.change.ChangeResource;
import com.google.gerrit.server.change.FileContentUtil;
import com.google.gerrit.server.change.RevisionResource;
@@ -237,7 +237,7 @@ public abstract class AbstractDaemonTest {
@Inject protected SystemGroupBackend systemGroupBackend;
@Inject protected MutableNotesMigration notesMigration;
@Inject protected ChangeNotes.Factory notesFactory;
@Inject protected Abandon changeAbandoner;
@Inject protected BatchAbandon batchAbandon;
protected EventRecorder eventRecorder;
protected GerritServer server;