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

Commit 9adaf5f

Browse files
Varro88AndreySurzhan
authored andcommitted
Fixed adding CodeReview comments according to new methods for notifications
1 parent de8a463 commit 9adaf5f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

functional-tests-jcommune/src/test/java/org/jtalks/tests/jcommune/CodeReviewTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void leaveValidCommentToCodeReview_ShouldPass() throws Exception {
106106
CodeReview codeReview = new CodeReview();
107107
CodeReviewComment codeReviewComment = new CodeReviewComment();
108108
Topics.createCodeReview(codeReview);
109-
Topics.leaveCodeReviewComment(codeReviewComment);
109+
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
110110
}
111111

112112
@Test(groups = "ui-tests", expectedExceptions = ValidationException.class,
@@ -116,7 +116,7 @@ public void leaveEmptyCommentToCodeReview_ShouldFail() throws Exception {
116116
CodeReview codeReview = new CodeReview();
117117
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent("");
118118
Topics.createCodeReview(codeReview);
119-
Topics.leaveCodeReviewComment(codeReviewComment);
119+
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
120120
}
121121

122122
@Test
@@ -125,7 +125,7 @@ public void leaveMinCommentToCodeReview_ShouldPass() throws Exception {
125125
CodeReview codeReview = new CodeReview();
126126
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent(randomAlphanumeric(1));
127127
Topics.createCodeReview(codeReview);
128-
Topics.leaveCodeReviewComment(codeReviewComment);
128+
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
129129
}
130130

131131
@Test
@@ -134,7 +134,7 @@ public void leaveMaxCommentToCodeReview_ShouldPass() throws Exception {
134134
CodeReview codeReview = new CodeReview();
135135
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent(randomAlphanumeric(5000));
136136
Topics.createCodeReview(codeReview);
137-
Topics.leaveCodeReviewComment(codeReviewComment);
137+
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
138138
}
139139

140140
@Test(expectedExceptions = ValidationException.class,
@@ -144,7 +144,7 @@ public void leaveCommentToCodeReviewExceedingMaxLength_ShouldFail() throws Excep
144144
CodeReview codeReview = new CodeReview();
145145
CodeReviewComment codeReviewComment = new CodeReviewComment().withContent(randomAlphanumeric(5001));
146146
Topics.createCodeReview(codeReview);
147-
Topics.leaveCodeReviewComment(codeReviewComment);
147+
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
148148
}
149149

150150
@Test
@@ -153,6 +153,6 @@ public void leaveCommentToCodeReviewNotInFirstLine_ShouldPass() throws Exception
153153
CodeReview codeReview = new CodeReview().withNumberOfLines(5);
154154
CodeReviewComment codeReviewComment = new CodeReviewComment().onLineNumber(4);
155155
Topics.createCodeReview(codeReview);
156-
Topics.leaveCodeReviewComment(codeReviewComment);
156+
Topics.leaveCodeReviewComment(codeReview, codeReviewComment);
157157
}
158158
}

0 commit comments

Comments
 (0)