AbstractQueryChangesTest: Add explicit tests for is:abandoned and status:abandoned
Bug: Issue 8603 Change-Id: I8fc2f52f9aab8df1c1ac1349d6ba8656302e009e
This commit is contained in:
@@ -359,6 +359,20 @@ public abstract class AbstractQueryChangesTest extends GerritServerTests {
|
||||
assertQuery("is:closed", expected);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void byStatusAbandoned() throws Exception {
|
||||
TestRepository<Repo> repo = createProject("repo");
|
||||
ChangeInserter ins1 = newChangeWithStatus(repo, Change.Status.MERGED);
|
||||
insert(repo, ins1);
|
||||
ChangeInserter ins2 = newChangeWithStatus(repo, Change.Status.ABANDONED);
|
||||
Change change1 = insert(repo, ins2);
|
||||
insert(repo, newChangeWithStatus(repo, Change.Status.NEW));
|
||||
|
||||
assertQuery("status:abandoned", change1);
|
||||
assertQuery("status:ABANDONED", change1);
|
||||
assertQuery("is:abandoned", change1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void byStatusPrefix() throws Exception {
|
||||
TestRepository<Repo> repo = createProject("repo");
|
||||
|
||||
Reference in New Issue
Block a user