@Test public void testConvert() { setupStackEntries(); ImagesV4Response result = underTest.convert(createSource()); assertEquals(1, result.getCdhImages().size()); }
@Override public ImagesV4Response convert(Images source) { ImagesV4Response res = new ImagesV4Response(); List<BaseImageV4Response> baseImages = getBaseImageResponses(source); res.setBaseImages(baseImages); List<ImageV4Response> cdhImages = convertImages(source.getCdhImages(), StackType.CDH); res.setCdhImages(cdhImages); res.setSupportedVersions(source.getSuppertedVersions()); return res; }
ImagesToImagesV4ResponseConverter extends AbstractConversionServiceAwareConverter<Images, ImagesV4Response> { @Override public ImagesV4Response convert(Images source) { ImagesV4Response res = new ImagesV4Response(); List<BaseImageV4Response> baseImages = getBaseImageResponses(source); res.setBaseImages(baseImages); List<ImageV4Response> cdhImages = convertImages(source.getCdhImages(), StackType.CDH); res.setCdhImages(cdhImages); res.setSupportedVersions(source.getSuppertedVersions()); return res; } }
ImagesToImagesV4ResponseConverter extends AbstractConversionServiceAwareConverter<Images, ImagesV4Response> { @Override public ImagesV4Response convert(Images source) { ImagesV4Response res = new ImagesV4Response(); List<BaseImageV4Response> baseImages = getBaseImageResponses(source); res.setBaseImages(baseImages); List<ImageV4Response> cdhImages = convertImages(source.getCdhImages(), StackType.CDH); res.setCdhImages(cdhImages); res.setSupportedVersions(source.getSuppertedVersions()); return res; }  }
ImagesToImagesV4ResponseConverter extends AbstractConversionServiceAwareConverter<Images, ImagesV4Response> { @Override public ImagesV4Response convert(Images source) { ImagesV4Response res = new ImagesV4Response(); List<BaseImageV4Response> baseImages = getBaseImageResponses(source); res.setBaseImages(baseImages); List<ImageV4Response> cdhImages = convertImages(source.getCdhImages(), StackType.CDH); res.setCdhImages(cdhImages); res.setSupportedVersions(source.getSuppertedVersions()); return res; }  @Override ImagesV4Response convert(Images source); }
ImagesToImagesV4ResponseConverter extends AbstractConversionServiceAwareConverter<Images, ImagesV4Response> { @Override public ImagesV4Response convert(Images source) { ImagesV4Response res = new ImagesV4Response(); List<BaseImageV4Response> baseImages = getBaseImageResponses(source); res.setBaseImages(baseImages); List<ImageV4Response> cdhImages = convertImages(source.getCdhImages(), StackType.CDH); res.setCdhImages(cdhImages); res.setSupportedVersions(source.getSuppertedVersions()); return res; }  @Override ImagesV4Response convert(Images source);  }