@@ -420,19 +420,7 @@ class SeriesImportServiceImplTest extends Specification {
420
420
given :
421
421
Integer expectedRequestId = Random . id()
422
422
and :
423
- // @todo #695 Introduce and use RawParsedDataDto.withImageUrl() method
424
- RawParsedDataDto rawData = new RawParsedDataDto (
425
- Random . categoryName(),
426
- Random . countryName(),
427
- null , /* imageUrl */
428
- Random . issueYear(). toString(),
429
- Random . quantity(). toString(),
430
- String . valueOf(Random . perforated()),
431
- Random . sellerName(),
432
- Random . url(),
433
- String . valueOf(Random . price()),
434
- Random . currency(). toString()
435
- )
423
+ RawParsedDataDto rawData = TestObjects . createRawParsedDataDto(). withImageUrl(null )
436
424
and :
437
425
extractorService. extract(_ as RawParsedDataDto ) >> TestObjects . createEmptySeriesExtractedInfo()
438
426
when :
@@ -450,18 +438,7 @@ class SeriesImportServiceImplTest extends Specification {
450
438
Integer expectedRequestId = Random . id()
451
439
String expectedImageUrl = Random . url()
452
440
and :
453
- RawParsedDataDto rawData = new RawParsedDataDto (
454
- Random . categoryName(),
455
- Random . countryName(),
456
- expectedImageUrl,
457
- Random . issueYear(). toString(),
458
- Random . quantity(). toString(),
459
- String . valueOf(Random . perforated()),
460
- Random . sellerName(),
461
- Random . url(),
462
- String . valueOf(Random . price()),
463
- Random . currency(). toString()
464
- )
441
+ RawParsedDataDto rawData = TestObjects . createRawParsedDataDto(). withImageUrl(expectedImageUrl)
465
442
and :
466
443
extractorService. extract(_ as RawParsedDataDto ) >> TestObjects . createEmptySeriesExtractedInfo()
467
444
when :
0 commit comments