diff --git a/functional-tests-jcommune/src/test/java/org/jtalks/tests/jcommune/CodeReviewTest.java b/functional-tests-jcommune/src/test/java/org/jtalks/tests/jcommune/CodeReviewTest.java index f6288cfa..568887de 100644 --- a/functional-tests-jcommune/src/test/java/org/jtalks/tests/jcommune/CodeReviewTest.java +++ b/functional-tests-jcommune/src/test/java/org/jtalks/tests/jcommune/CodeReviewTest.java @@ -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, @@ -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 @@ -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 @@ -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, @@ -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 @@ -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); } }