@Test public void testImageCatalogResponseHasCreated() { Assertions.assertNotNull(converterUnderTest.convert(IMAGE_CATALOG).getCreated()); }
@Override public ImageCatalogV4Response convert(ImageCatalog source) { ImageCatalogV4Response imageCatalogResponse = new ImageCatalogV4Response(); imageCatalogResponse.setUrl(source.getImageCatalogUrl()); String imageCatalogName = source.getName(); imageCatalogResponse.setUsedAsDefault(isDefault(imageCatalogName)); imageCatalogResponse.setName(imageCatalogName); imageCatalogResponse.setDescription(source.getDescription()); imageCatalogResponse.setCreator(source.getCreator()); imageCatalogResponse.setCreated(source.getCreated()); imageCatalogResponse.setCrn(source.getResourceCrn()); return imageCatalogResponse; }
ImageCatalogToImageCatalogV4ResponseConverter extends AbstractConversionServiceAwareConverter<ImageCatalog, ImageCatalogV4Response> { @Override public ImageCatalogV4Response convert(ImageCatalog source) { ImageCatalogV4Response imageCatalogResponse = new ImageCatalogV4Response(); imageCatalogResponse.setUrl(source.getImageCatalogUrl()); String imageCatalogName = source.getName(); imageCatalogResponse.setUsedAsDefault(isDefault(imageCatalogName)); imageCatalogResponse.setName(imageCatalogName); imageCatalogResponse.setDescription(source.getDescription()); imageCatalogResponse.setCreator(source.getCreator()); imageCatalogResponse.setCreated(source.getCreated()); imageCatalogResponse.setCrn(source.getResourceCrn()); return imageCatalogResponse; } }
ImageCatalogToImageCatalogV4ResponseConverter extends AbstractConversionServiceAwareConverter<ImageCatalog, ImageCatalogV4Response> { @Override public ImageCatalogV4Response convert(ImageCatalog source) { ImageCatalogV4Response imageCatalogResponse = new ImageCatalogV4Response(); imageCatalogResponse.setUrl(source.getImageCatalogUrl()); String imageCatalogName = source.getName(); imageCatalogResponse.setUsedAsDefault(isDefault(imageCatalogName)); imageCatalogResponse.setName(imageCatalogName); imageCatalogResponse.setDescription(source.getDescription()); imageCatalogResponse.setCreator(source.getCreator()); imageCatalogResponse.setCreated(source.getCreated()); imageCatalogResponse.setCrn(source.getResourceCrn()); return imageCatalogResponse; }  }
ImageCatalogToImageCatalogV4ResponseConverter extends AbstractConversionServiceAwareConverter<ImageCatalog, ImageCatalogV4Response> { @Override public ImageCatalogV4Response convert(ImageCatalog source) { ImageCatalogV4Response imageCatalogResponse = new ImageCatalogV4Response(); imageCatalogResponse.setUrl(source.getImageCatalogUrl()); String imageCatalogName = source.getName(); imageCatalogResponse.setUsedAsDefault(isDefault(imageCatalogName)); imageCatalogResponse.setName(imageCatalogName); imageCatalogResponse.setDescription(source.getDescription()); imageCatalogResponse.setCreator(source.getCreator()); imageCatalogResponse.setCreated(source.getCreated()); imageCatalogResponse.setCrn(source.getResourceCrn()); return imageCatalogResponse; }  @Override ImageCatalogV4Response convert(ImageCatalog source); }
ImageCatalogToImageCatalogV4ResponseConverter extends AbstractConversionServiceAwareConverter<ImageCatalog, ImageCatalogV4Response> { @Override public ImageCatalogV4Response convert(ImageCatalog source) { ImageCatalogV4Response imageCatalogResponse = new ImageCatalogV4Response(); imageCatalogResponse.setUrl(source.getImageCatalogUrl()); String imageCatalogName = source.getName(); imageCatalogResponse.setUsedAsDefault(isDefault(imageCatalogName)); imageCatalogResponse.setName(imageCatalogName); imageCatalogResponse.setDescription(source.getDescription()); imageCatalogResponse.setCreator(source.getCreator()); imageCatalogResponse.setCreated(source.getCreated()); imageCatalogResponse.setCrn(source.getResourceCrn()); return imageCatalogResponse; }  @Override ImageCatalogV4Response convert(ImageCatalog source);  }