Skip to content

Commit dd0a63c

Browse files
FilippoULIVODIR\f.michelini
authored andcommitted
format
1 parent eeb878c commit dd0a63c

File tree

1 file changed

+6
-5
lines changed
  • extensions/data-transfer/portability-data-transfer-google/src/test/java/org/datatransferproject/datatransfer/google/photos

1 file changed

+6
-5
lines changed

extensions/data-transfer/portability-data-transfer-google/src/test/java/org/datatransferproject/datatransfer/google/photos/GooglePhotosInterfaceTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,20 +269,21 @@ void uploadEmptyMediaContent()
269269
}
270270

271271
@Test
272-
void createPhotos()throws Exception {
273-
BatchMediaItemResponse batchMediaItemResponse = new BatchMediaItemResponse(new NewMediaItemResult[]{});
272+
void createPhotos() throws Exception {
273+
BatchMediaItemResponse batchMediaItemResponse = new BatchMediaItemResponse(
274+
new NewMediaItemResult[]{});
274275
TypeReference<HashMap<String, Object>> typeRef = new TypeReference<HashMap<String, Object>>() {
275276
};
276277
Map<String, Object> albumMap = objectMapper.readValue(
277278
objectMapper.writeValueAsString(batchMediaItemResponse), typeRef);
278279
Map<String, Object> params = ImmutableMap.of("album", albumMap);
279280

280-
281281
GooglePhotosInterface photosInterfaceSpy = Mockito.spy(this.googlePhotosInterface);
282282
Mockito.doReturn(batchMediaItemResponse).when(photosInterfaceSpy)
283283
.makePostRequest(anyString(), any(), any(), any(), any());
284284

285-
BatchMediaItemResponse apiResponse = googlePhotosInterface.createPhotos(any(NewMediaItemUpload.class));
285+
BatchMediaItemResponse apiResponse = googlePhotosInterface.createPhotos(
286+
any(NewMediaItemUpload.class));
286287

287288
ArgumentCaptor<String> urlStringCaptor = ArgumentCaptor.forClass(String.class);
288289
ArgumentCaptor<JsonHttpContent> contentCaptor = ArgumentCaptor.forClass(JsonHttpContent.class);
@@ -295,6 +296,6 @@ void createPhotos()throws Exception {
295296

296297
@Test
297298
void makePostRequest() {
298-
// Discussion: I Belive this method should be kept private for the interface to make sense
299+
// Discussion: I Believe this method should be kept private for the interface to make sense
299300
}
300301
}

0 commit comments

Comments
 (0)