Integration Tests for assignee

/assignee GET PUT DELETE
/past_assignees GET

Change-Id: I182bbdb7b824e8a149c0b575b9f4c026aaa33140
This commit is contained in:
Sven Selberg
2016-09-22 14:41:55 +02:00
parent 90191550aa
commit 3c6d9f9fb1
3 changed files with 229 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
package com.google.gerrit.extensions.api.changes;
import com.google.gerrit.extensions.client.ListChangesOption;
import com.google.gerrit.extensions.common.AccountInfo;
import com.google.gerrit.extensions.common.ChangeInfo;
import com.google.gerrit.extensions.common.CommentInfo;
import com.google.gerrit.extensions.common.EditInfo;
@@ -141,6 +142,26 @@ public interface ChangeApi {
*/
Set<String> getHashtags() throws RestApiException;
/**
* Set the assignee of a change.
*/
AccountInfo setAssignee(AssigneeInput input) throws RestApiException;
/**
* Get the assignee of a change.
*/
AccountInfo getAssignee() throws RestApiException;
/**
* Get all past assignees.
*/
Set<AccountInfo> getPastAssignees() throws RestApiException;
/**
* Delete the assignee of a change.
*/
AccountInfo deleteAssignee() throws RestApiException;
/**
* Get all published comments on a change.
*
@@ -328,6 +349,27 @@ public interface ChangeApi {
throw new NotImplementedException();
}
@Override
public AccountInfo setAssignee(AssigneeInput input)
throws RestApiException {
throw new NotImplementedException();
}
@Override
public AccountInfo getAssignee() throws RestApiException {
throw new NotImplementedException();
}
@Override
public Set<AccountInfo> getPastAssignees() throws RestApiException {
throw new NotImplementedException();
}
@Override
public AccountInfo deleteAssignee() throws RestApiException {
throw new NotImplementedException();
}
@Override
public Map<String, List<CommentInfo>> comments() throws RestApiException {
throw new NotImplementedException();