Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Fixed adding CodeReview comments according to new methods for notific…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
Varro88 committed Apr 26, 2015
1 parent 2050ba9 commit 555e0a9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void leaveValidCommentToCodeReview_ShouldPass() throws Exception {
CodeReview codeReview = new CodeReview();
CodeReviewComment codeReviewComment = new CodeReviewComment();
Topics.createCodeReview(codeReview);
Topics.leaveCodeReviewComment(codeReviewComment);
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
}

@Test(groups = "ui-tests", expectedExceptions = ValidationException.class,
Expand All @@ -116,7 +116,7 @@ public void leaveEmptyCommentToCodeReview_ShouldFail() throws Exception {
CodeReview codeReview = new CodeReview();
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent("");
Topics.createCodeReview(codeReview);
Topics.leaveCodeReviewComment(codeReviewComment);
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
}

@Test
Expand All @@ -125,7 +125,7 @@ public void leaveMinCommentToCodeReview_ShouldPass() throws Exception {
CodeReview codeReview = new CodeReview();
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent(randomAlphanumeric(1));
Topics.createCodeReview(codeReview);
Topics.leaveCodeReviewComment(codeReviewComment);
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
}

@Test
Expand All @@ -134,7 +134,7 @@ public void leaveMaxCommentToCodeReview_ShouldPass() throws Exception {
CodeReview codeReview = new CodeReview();
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent(randomAlphanumeric(5000));
Topics.createCodeReview(codeReview);
Topics.leaveCodeReviewComment(codeReviewComment);
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
}

@Test(expectedExceptions = ValidationException.class,
Expand All @@ -144,7 +144,7 @@ public void leaveCommentToCodeReviewExceedingMaxLength_ShouldFail() throws Excep
CodeReview codeReview = new CodeReview();
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent(randomAlphanumeric(5001));
Topics.createCodeReview(codeReview);
Topics.leaveCodeReviewComment(codeReviewComment);
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
}

@Test
Expand All @@ -153,6 +153,6 @@ public void leaveCommentToCodeReviewNotInFirstLine_ShouldPass() throws Exception
CodeReview codeReview = new CodeReview().withNumberOfLines(5);
CodeReviewComment codeReviewComment = new CodeReviewComment().onLineNumber(4);
Topics.createCodeReview(codeReview);
Topics.leaveCodeReviewComment(codeReviewComment);
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
}
}

0 comments on commit 555e0a9

Please sign in to comment.