@Test public void testConvert() { BlueprintV4Response result = underTest.convert(createSource()); assertAllFieldsNotNull(result, List.of("created")); }
@Override public BlueprintV4Response convert(Blueprint entity) { BlueprintV4Response blueprintJson = new BlueprintV4Response(); blueprintJson.setName(entity.getName()); blueprintJson.setDescription(entity.getDescription() == null ? "" : entity.getDescription()); blueprintJson.setHostGroupCount(entity.getHostGroupCount()); blueprintJson.setStatus(entity.getStatus()); blueprintJson.setTags(entity.getTags().getMap()); blueprintJson.setBlueprint(entity.getBlueprintText()); blueprintJson.setCrn(entity.getResourceCrn()); blueprintJson.setCreated(entity.getCreated()); return blueprintJson; }
BlueprintToBlueprintV4ResponseConverter extends AbstractConversionServiceAwareConverter<Blueprint, BlueprintV4Response> { @Override public BlueprintV4Response convert(Blueprint entity) { BlueprintV4Response blueprintJson = new BlueprintV4Response(); blueprintJson.setName(entity.getName()); blueprintJson.setDescription(entity.getDescription() == null ? "" : entity.getDescription()); blueprintJson.setHostGroupCount(entity.getHostGroupCount()); blueprintJson.setStatus(entity.getStatus()); blueprintJson.setTags(entity.getTags().getMap()); blueprintJson.setBlueprint(entity.getBlueprintText()); blueprintJson.setCrn(entity.getResourceCrn()); blueprintJson.setCreated(entity.getCreated()); return blueprintJson; } }
BlueprintToBlueprintV4ResponseConverter extends AbstractConversionServiceAwareConverter<Blueprint, BlueprintV4Response> { @Override public BlueprintV4Response convert(Blueprint entity) { BlueprintV4Response blueprintJson = new BlueprintV4Response(); blueprintJson.setName(entity.getName()); blueprintJson.setDescription(entity.getDescription() == null ? "" : entity.getDescription()); blueprintJson.setHostGroupCount(entity.getHostGroupCount()); blueprintJson.setStatus(entity.getStatus()); blueprintJson.setTags(entity.getTags().getMap()); blueprintJson.setBlueprint(entity.getBlueprintText()); blueprintJson.setCrn(entity.getResourceCrn()); blueprintJson.setCreated(entity.getCreated()); return blueprintJson; }  }
BlueprintToBlueprintV4ResponseConverter extends AbstractConversionServiceAwareConverter<Blueprint, BlueprintV4Response> { @Override public BlueprintV4Response convert(Blueprint entity) { BlueprintV4Response blueprintJson = new BlueprintV4Response(); blueprintJson.setName(entity.getName()); blueprintJson.setDescription(entity.getDescription() == null ? "" : entity.getDescription()); blueprintJson.setHostGroupCount(entity.getHostGroupCount()); blueprintJson.setStatus(entity.getStatus()); blueprintJson.setTags(entity.getTags().getMap()); blueprintJson.setBlueprint(entity.getBlueprintText()); blueprintJson.setCrn(entity.getResourceCrn()); blueprintJson.setCreated(entity.getCreated()); return blueprintJson; }  @Override BlueprintV4Response convert(Blueprint entity); }
BlueprintToBlueprintV4ResponseConverter extends AbstractConversionServiceAwareConverter<Blueprint, BlueprintV4Response> { @Override public BlueprintV4Response convert(Blueprint entity) { BlueprintV4Response blueprintJson = new BlueprintV4Response(); blueprintJson.setName(entity.getName()); blueprintJson.setDescription(entity.getDescription() == null ? "" : entity.getDescription()); blueprintJson.setHostGroupCount(entity.getHostGroupCount()); blueprintJson.setStatus(entity.getStatus()); blueprintJson.setTags(entity.getTags().getMap()); blueprintJson.setBlueprint(entity.getBlueprintText()); blueprintJson.setCrn(entity.getResourceCrn()); blueprintJson.setCreated(entity.getCreated()); return blueprintJson; }  @Override BlueprintV4Response convert(Blueprint entity);  }