Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
DIR\f.michelini committed Jun 24, 2023
1 parent 3d008d6 commit 9f3398a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,20 +269,21 @@ void uploadEmptyMediaContent()
}

@Test
void createPhotos()throws Exception {
BatchMediaItemResponse batchMediaItemResponse = new BatchMediaItemResponse(new NewMediaItemResult[]{});
void createPhotos() throws Exception {
BatchMediaItemResponse batchMediaItemResponse = new BatchMediaItemResponse(
new NewMediaItemResult[]{});
TypeReference<HashMap<String, Object>> typeRef = new TypeReference<HashMap<String, Object>>() {
};
Map<String, Object> albumMap = objectMapper.readValue(
objectMapper.writeValueAsString(batchMediaItemResponse), typeRef);
Map<String, Object> params = ImmutableMap.of("album", albumMap);


GooglePhotosInterface photosInterfaceSpy = Mockito.spy(this.googlePhotosInterface);
Mockito.doReturn(batchMediaItemResponse).when(photosInterfaceSpy)
.makePostRequest(anyString(), any(), any(), any(), any());

BatchMediaItemResponse apiResponse = googlePhotosInterface.createPhotos(any(NewMediaItemUpload.class));
BatchMediaItemResponse apiResponse = googlePhotosInterface.createPhotos(
any(NewMediaItemUpload.class));

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

@Test
void makePostRequest() {
// Discussion: I Belive this method should be kept private for the interface to make sense
// Discussion: I Believe this method should be kept private for the interface to make sense
}
}

0 comments on commit 9f3398a

Please sign in to comment.