@@ -84,8 +84,8 @@ public void testManualRunAndBasicInformation() throws IOException {
84
84
GHWorkflowRun workflowRun = getWorkflowRun (FAST_WORKFLOW_NAME ,
85
85
MAIN_BRANCH ,
86
86
Status .COMPLETED ,
87
- latestPreexistingWorkflowRunId ). orElseThrow (
88
- () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
87
+ latestPreexistingWorkflowRunId )
88
+ . orElseThrow ( () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
89
89
90
90
assertThat (workflowRun .getWorkflowId (), equalTo (workflow .getId ()));
91
91
assertThat (workflowRun .getId (), notNullValue ());
@@ -137,8 +137,8 @@ public void testCancelAndRerun() throws IOException {
137
137
GHWorkflowRun workflowRun = getWorkflowRun (SLOW_WORKFLOW_NAME ,
138
138
MAIN_BRANCH ,
139
139
Status .IN_PROGRESS ,
140
- latestPreexistingWorkflowRunId ). orElseThrow (
141
- () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
140
+ latestPreexistingWorkflowRunId )
141
+ . orElseThrow ( () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
142
142
143
143
assertThat (workflowRun .getId (), notNullValue ());
144
144
@@ -186,8 +186,8 @@ public void testDelete() throws IOException {
186
186
GHWorkflowRun workflowRunToDelete = getWorkflowRun (FAST_WORKFLOW_NAME ,
187
187
MAIN_BRANCH ,
188
188
Status .COMPLETED ,
189
- latestPreexistingWorkflowRunId ). orElseThrow (
190
- () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
189
+ latestPreexistingWorkflowRunId )
190
+ . orElseThrow ( () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
191
191
192
192
assertThat (workflowRunToDelete .getId (), notNullValue ());
193
193
@@ -224,8 +224,8 @@ public void testSearchOnBranch() throws IOException {
224
224
GHWorkflowRun workflowRun = getWorkflowRun (FAST_WORKFLOW_NAME ,
225
225
SECOND_BRANCH ,
226
226
Status .COMPLETED ,
227
- latestPreexistingWorkflowRunId ). orElseThrow (
228
- () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
227
+ latestPreexistingWorkflowRunId )
228
+ . orElseThrow ( () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
229
229
230
230
assertThat (workflowRun .getWorkflowId (), equalTo (workflow .getId ()));
231
231
assertThat (workflowRun .getHeadBranch (), equalTo (SECOND_BRANCH ));
@@ -326,8 +326,8 @@ public void testLogs() throws IOException {
326
326
GHWorkflowRun workflowRun = getWorkflowRun (FAST_WORKFLOW_NAME ,
327
327
MAIN_BRANCH ,
328
328
Status .COMPLETED ,
329
- latestPreexistingWorkflowRunId ). orElseThrow (
330
- () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
329
+ latestPreexistingWorkflowRunId )
330
+ . orElseThrow ( () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
331
331
332
332
List <String > logsArchiveEntries = new ArrayList <>();
333
333
String fullLogContent = workflowRun
@@ -370,8 +370,8 @@ public void testArtifacts() throws IOException {
370
370
GHWorkflowRun workflowRun = getWorkflowRun (ARTIFACTS_WORKFLOW_NAME ,
371
371
MAIN_BRANCH ,
372
372
Status .COMPLETED ,
373
- latestPreexistingWorkflowRunId ). orElseThrow (
374
- () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
373
+ latestPreexistingWorkflowRunId )
374
+ . orElseThrow ( () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
375
375
376
376
List <GHArtifact > artifacts = new ArrayList <>(workflowRun .listArtifacts ().toList ());
377
377
artifacts .sort ((a1 , a2 ) -> a1 .getName ().compareTo (a2 .getName ()));
@@ -456,8 +456,8 @@ public void testJobs() throws IOException {
456
456
GHWorkflowRun workflowRun = getWorkflowRun (MULTI_JOBS_WORKFLOW_NAME ,
457
457
MAIN_BRANCH ,
458
458
Status .COMPLETED ,
459
- latestPreexistingWorkflowRunId ). orElseThrow (
460
- () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
459
+ latestPreexistingWorkflowRunId )
460
+ . orElseThrow ( () -> new IllegalStateException ("We must have a valid workflow run starting from here" ));
461
461
462
462
List <GHWorkflowJob > jobs = workflowRun .listJobs ()
463
463
.toList ()
0 commit comments