Skip to content

Commit

Permalink
test: Update unit tests for LPVSPullRequestAction
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Kopysov <o.kopysov@samsung.com>
  • Loading branch information
o-kopysov committed Dec 28, 2023
1 parent 7b5cbe7 commit dcf0151
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ public void testConvertFrom() {
assertEquals(
LPVSPullRequestAction.convertFrom("synchronize"), LPVSPullRequestAction.UPDATE);
assertEquals(LPVSPullRequestAction.convertFrom("rescan"), LPVSPullRequestAction.RESCAN);
assertEquals(
LPVSPullRequestAction.convertFrom("single-scan"),
LPVSPullRequestAction.SINGLE_SCAN);

assertNotEquals(
LPVSPullRequestAction.convertFrom("random_name"), LPVSPullRequestAction.OPEN);
Expand All @@ -31,6 +34,9 @@ public void testConvertFrom() {
LPVSPullRequestAction.convertFrom("random_name"), LPVSPullRequestAction.UPDATE);
assertNotEquals(
LPVSPullRequestAction.convertFrom("random_name"), LPVSPullRequestAction.RESCAN);
assertNotEquals(
LPVSPullRequestAction.convertFrom("random_name"),
LPVSPullRequestAction.SINGLE_SCAN);

assertNull(LPVSPullRequestAction.convertFrom("random_name"));
}
Expand All @@ -42,5 +48,6 @@ public void testGetPullRequestAction() {
assertEquals(LPVSPullRequestAction.CLOSE.getPullRequestAction(), "closed");
assertEquals(LPVSPullRequestAction.UPDATE.getPullRequestAction(), "synchronize");
assertEquals(LPVSPullRequestAction.RESCAN.getPullRequestAction(), "rescan");
assertEquals(LPVSPullRequestAction.SINGLE_SCAN.getPullRequestAction(), "single-scan");
}
}

0 comments on commit dcf0151

Please sign in to comment.