Skip to content

Commit

Permalink
Apply fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gkiko10 committed Jan 22, 2025
1 parent 22f04c2 commit 48eaf74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Run getRun(GetRunRequest request) {
}
Collection<RepairHistoryItem> newRepairHistory = currRun.getRepairHistory();
if (newRepairHistory != null) {
run.getRepairHistory().addAll(newRepairHistory);
run.getRepairHistory().addAll(newRepairHistory);
}
run.setNextPageToken(currRun.getNextPageToken());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import static org.mockito.Mockito.*;

import com.databricks.sdk.service.jobs.*;

import java.util.ArrayList;
import java.util.Collection;
import org.junit.jupiter.api.Test;
Expand All @@ -29,7 +28,6 @@ public void testGetRunPaginationWithTasks() {
addTasks(thirdPage, 4L);
addJobParameters(thirdPage, "parameterKey5");


when(service.getRun(any())).thenReturn(firstPage).thenReturn(secondPage).thenReturn(thirdPage);

JobsExt jobsExt = new JobsExt(service);
Expand All @@ -41,7 +39,13 @@ public void testGetRunPaginationWithTasks() {
Run expectedRun = new Run();
addTasks(expectedRun, 0L, 1L, 2L, 3L, 4L);
addJobClusters(expectedRun, "clusterKey1", "clusterKey2", "clusterKey3");
addJobParameters(expectedRun, "parameterKey1", "parameterKey2", "parameterKey3", "parameterKey4", "parameterKey5");
addJobParameters(
expectedRun,
"parameterKey1",
"parameterKey2",
"parameterKey3",
"parameterKey4",
"parameterKey5");

assertEquals(expectedRun, run);
verify(service, times(3)).getRun(any());
Expand Down

0 comments on commit 48eaf74

Please sign in to comment.