We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe27ea commit 5d7fcbbCopy full SHA for 5d7fcbb
src/test/java/ru/mystamps/web/service/SeriesServiceTest.java
@@ -397,6 +397,13 @@ public void addShouldThrowExceptionIfImageUrlTooLong() {
397
398
@Test
399
public void addShouldPassImageUrlToSeriesDao() {
400
+ final String expectedUrl = "http://example.org/example.jpg";
401
+ when(imageService.save(any(MultipartFile.class))).thenReturn(expectedUrl);
402
+
403
+ service.add(form);
404
405
+ verify(seriesDao).save(seriesCaptor.capture());
406
+ assertThat(seriesCaptor.getValue().getImageUrl()).isEqualTo(expectedUrl);
407
408
}
409
0 commit comments