AbstractDaemonTest: s/ammend/amend
Change-Id: Ic2f926aaba799548ef3ddd35924714a4c6ac8157
This commit is contained in:
@@ -154,7 +154,7 @@ public abstract class AbstractDaemonTest {
|
|||||||
|
|
||||||
private static final List<Character> RANDOM =
|
private static final List<Character> RANDOM =
|
||||||
Chars.asList(new char[]{'a','b','c','d','e','f','g','h'});
|
Chars.asList(new char[]{'a','b','c','d','e','f','g','h'});
|
||||||
protected PushOneCommit.Result ammendChange(String changeId)
|
protected PushOneCommit.Result amendChange(String changeId)
|
||||||
throws GitAPIException, IOException {
|
throws GitAPIException, IOException {
|
||||||
Collections.shuffle(RANDOM);
|
Collections.shuffle(RANDOM);
|
||||||
PushOneCommit push =
|
PushOneCommit push =
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ public class LabelTypeIT extends AbstractDaemonTest {
|
|||||||
PushOneCommit.Result r = createChange();
|
PushOneCommit.Result r = createChange();
|
||||||
revision(r).review(ReviewInput.reject());
|
revision(r).review(ReviewInput.reject());
|
||||||
assertApproval(r, -2);
|
assertApproval(r, -2);
|
||||||
r = ammendChange(r.getChangeId());
|
r = amendChange(r.getChangeId());
|
||||||
assertApproval(r, 0);
|
assertApproval(r, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ public class LabelTypeIT extends AbstractDaemonTest {
|
|||||||
PushOneCommit.Result r = createChange();
|
PushOneCommit.Result r = createChange();
|
||||||
revision(r).review(ReviewInput.reject());
|
revision(r).review(ReviewInput.reject());
|
||||||
assertApproval(r, -2);
|
assertApproval(r, -2);
|
||||||
r = ammendChange(r.getChangeId());
|
r = amendChange(r.getChangeId());
|
||||||
assertApproval(r, -2);
|
assertApproval(r, -2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ public class LabelTypeIT extends AbstractDaemonTest {
|
|||||||
PushOneCommit.Result r = createChange();
|
PushOneCommit.Result r = createChange();
|
||||||
revision(r).review(ReviewInput.approve());
|
revision(r).review(ReviewInput.approve());
|
||||||
assertApproval(r, 2);
|
assertApproval(r, 2);
|
||||||
r = ammendChange(r.getChangeId());
|
r = amendChange(r.getChangeId());
|
||||||
assertApproval(r, 0);
|
assertApproval(r, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ public class LabelTypeIT extends AbstractDaemonTest {
|
|||||||
PushOneCommit.Result r = createChange();
|
PushOneCommit.Result r = createChange();
|
||||||
revision(r).review(ReviewInput.approve());
|
revision(r).review(ReviewInput.approve());
|
||||||
assertApproval(r, 2);
|
assertApproval(r, 2);
|
||||||
r = ammendChange(r.getChangeId());
|
r = amendChange(r.getChangeId());
|
||||||
assertApproval(r, 2);
|
assertApproval(r, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,7 +114,7 @@ public class LabelTypeIT extends AbstractDaemonTest {
|
|||||||
PushOneCommit.Result r = createChange();
|
PushOneCommit.Result r = createChange();
|
||||||
revision(r).review(ReviewInput.recommend());
|
revision(r).review(ReviewInput.recommend());
|
||||||
assertApproval(r, 1);
|
assertApproval(r, 1);
|
||||||
r = ammendChange(r.getChangeId());
|
r = amendChange(r.getChangeId());
|
||||||
assertApproval(r, 0);
|
assertApproval(r, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ public class LabelTypeIT extends AbstractDaemonTest {
|
|||||||
PushOneCommit.Result r = createChange();
|
PushOneCommit.Result r = createChange();
|
||||||
revision(r).review(ReviewInput.dislike());
|
revision(r).review(ReviewInput.dislike());
|
||||||
assertApproval(r, -1);
|
assertApproval(r, -1);
|
||||||
r = ammendChange(r.getChangeId());
|
r = amendChange(r.getChangeId());
|
||||||
assertApproval(r, 0);
|
assertApproval(r, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user