@@ -147,7 +147,6 @@ public void getTargetPullRequests_returns_empty_list_for_no_pull_requests() thro
147
147
@ Test
148
148
public void getTargetPullRequests_accepts_open_pull_requests () throws Exception {
149
149
when (stashApiClient .getPullRequests ()).thenReturn (pullRequestList );
150
- when (trigger .getCiSkipPhrases ()).thenReturn ("NO TEST" );
151
150
152
151
assertThat (stashRepository .getTargetPullRequests (), contains (pullRequest ));
153
152
}
@@ -171,7 +170,6 @@ public void getTargetPullRequests_skips_null_state_pull_requests() throws Except
171
170
@ Test
172
171
public void getTargetPullRequests_accepts_matching_branches () throws Exception {
173
172
when (stashApiClient .getPullRequests ()).thenReturn (pullRequestList );
174
- when (trigger .getCiSkipPhrases ()).thenReturn ("NO TEST" );
175
173
when (trigger .getTargetBranchesToBuild ()).thenReturn ("release/.*,feature/.*,testing/.*" );
176
174
177
175
assertThat (stashRepository .getTargetPullRequests (), contains (pullRequest ));
@@ -180,7 +178,6 @@ public void getTargetPullRequests_accepts_matching_branches() throws Exception {
180
178
@ Test
181
179
public void getTargetPullRequests_accepts_matching_branches_with_padding () throws Exception {
182
180
when (stashApiClient .getPullRequests ()).thenReturn (pullRequestList );
183
- when (trigger .getCiSkipPhrases ()).thenReturn ("NO TEST" );
184
181
when (trigger .getTargetBranchesToBuild ())
185
182
.thenReturn ("\t release/.*, \n \t feature/.* \r \n , testing/.*\r " );
186
183
@@ -190,7 +187,6 @@ public void getTargetPullRequests_accepts_matching_branches_with_padding() throw
190
187
@ Test
191
188
public void getTargetPullRequests_skips_mismatching_branches () throws Exception {
192
189
when (stashApiClient .getPullRequests ()).thenReturn (pullRequestList );
193
- when (trigger .getCiSkipPhrases ()).thenReturn ("NO TEST" );
194
190
when (trigger .getTargetBranchesToBuild ()).thenReturn ("release/.*,testing/.*" );
195
191
196
192
assertThat (stashRepository .getTargetPullRequests (), empty ());
@@ -200,7 +196,6 @@ public void getTargetPullRequests_skips_mismatching_branches() throws Exception
200
196
public void getTargetPullRequests_accepts_any_branch_if_Branches_to_Build_is_empty ()
201
197
throws Exception {
202
198
when (stashApiClient .getPullRequests ()).thenReturn (pullRequestList );
203
- when (trigger .getCiSkipPhrases ()).thenReturn ("NO TEST" );
204
199
when (trigger .getTargetBranchesToBuild ()).thenReturn ("" );
205
200
206
201
assertThat (stashRepository .getTargetPullRequests (), contains (pullRequest ));
@@ -210,7 +205,6 @@ public void getTargetPullRequests_accepts_any_branch_if_Branches_to_Build_is_emp
210
205
public void getTargetPullRequests_accepts_any_branch_if_Branches_to_Build_is_null ()
211
206
throws Exception {
212
207
when (stashApiClient .getPullRequests ()).thenReturn (pullRequestList );
213
- when (trigger .getCiSkipPhrases ()).thenReturn ("NO TEST" );
214
208
when (trigger .getTargetBranchesToBuild ()).thenReturn (null );
215
209
216
210
assertThat (stashRepository .getTargetPullRequests (), contains (pullRequest ));
@@ -488,7 +482,6 @@ public void getTargetPullRequests_returns_empty_if_getPullRequests_throws() thro
488
482
public void getTargetPullRequests_skips_pull_request_if_getPullRequestComments_throws ()
489
483
throws Exception {
490
484
when (stashApiClient .getPullRequests ()).thenReturn (pullRequestList );
491
- when (trigger .getCiSkipPhrases ()).thenReturn ("NO TEST" );
492
485
when (stashApiClient .getPullRequestComments (any (), any (), any ()))
493
486
.thenThrow (new StashApiException ("cannot read PR comments" ));
494
487
0 commit comments