Skip to content

Commit

Permalink
reorder the other constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
osamahan999 committed Dec 1, 2023
1 parent 37c540a commit 1e9b11d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public GoogleMediaExporter(
credentialFactory,
jobStore,
jsonFactory,
/* photosInterface= */ null,
monitor
monitor,
/* photosInterface= */ null
);
}

Expand All @@ -95,8 +95,9 @@ public GoogleMediaExporter(
GoogleCredentialFactory credentialFactory,
TemporaryPerJobDataStore jobStore,
JsonFactory jsonFactory,
@Nullable GooglePhotosInterface photosInterface,
Monitor monitor) {
Monitor monitor, @Nullable
GooglePhotosInterface photosInterface
) {
this(
credentialFactory,
jobStore,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;
import static org.mockito.Mockito.when;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.services.drive.Drive.Files.Export;
import com.google.common.collect.ImmutableList;
import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -72,7 +70,6 @@
import org.datatransferproject.types.common.models.media.MediaAlbum;
import org.datatransferproject.types.common.models.media.MediaContainerResource;
import org.datatransferproject.types.transfer.auth.TokensAndUrlAuthData;
import org.datatransferproject.types.transfer.errors.ErrorDetail;
import org.datatransferproject.types.transfer.retry.RetryStrategyLibrary;
import org.datatransferproject.types.transfer.retry.UniformRetryStrategy;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -120,7 +117,7 @@ public void setup()

googleMediaExporter =
new GoogleMediaExporter(
credentialFactory, jobStore, GsonFactory.getDefaultInstance(), photosInterface, monitor);
credentialFactory, jobStore, GsonFactory.getDefaultInstance(), monitor, photosInterface);

retryingGoogleMediaExporter = new GoogleMediaExporter(
credentialFactory, jobStore, GsonFactory.getDefaultInstance(), monitor, photosInterface,
Expand Down

0 comments on commit 1e9b11d

Please sign in to comment.