@Test public void testCredentialToCredentialResponseConverterHasCreated() { Assertions.assertNotNull(converterUnderTest.convert(CREDENTIAL).getCreated()); }
public CredentialResponse convert(Credential source) { CredentialResponse response = new CredentialResponse(); credentialValidator.validateCredentialCloudPlatform(source.getCloudPlatform(), source.getCreator()); response.setCloudPlatform(source.getCloudPlatform()); response.setName(source.getName()); response.setVerifyPermissions(source.isVerifyPermissions()); response.setVerificationStatusText(source.getVerificationStatusText()); if (source.getAttributes() != null) { convertAttributes(source, response); if (response.getAws() != null) { response.getAws().setGovCloud(source.getGovCloud()); } response.setAttributes(secretConverter.convert(source.getAttributesSecret())); } response.setCrn(source.getResourceCrn()); response.setCreator(source.getCreator()); response.setCreated(source.getCreated()); response.setDescription(source.getDescription() == null ? "" : source.getDescription()); response.setType(source.getType()); response.setAccountId(source.getAccountId()); return response; }
CredentialToCredentialV1ResponseConverter { public CredentialResponse convert(Credential source) { CredentialResponse response = new CredentialResponse(); credentialValidator.validateCredentialCloudPlatform(source.getCloudPlatform(), source.getCreator()); response.setCloudPlatform(source.getCloudPlatform()); response.setName(source.getName()); response.setVerifyPermissions(source.isVerifyPermissions()); response.setVerificationStatusText(source.getVerificationStatusText()); if (source.getAttributes() != null) { convertAttributes(source, response); if (response.getAws() != null) { response.getAws().setGovCloud(source.getGovCloud()); } response.setAttributes(secretConverter.convert(source.getAttributesSecret())); } response.setCrn(source.getResourceCrn()); response.setCreator(source.getCreator()); response.setCreated(source.getCreated()); response.setDescription(source.getDescription() == null ? "" : source.getDescription()); response.setType(source.getType()); response.setAccountId(source.getAccountId()); return response; } }
CredentialToCredentialV1ResponseConverter { public CredentialResponse convert(Credential source) { CredentialResponse response = new CredentialResponse(); credentialValidator.validateCredentialCloudPlatform(source.getCloudPlatform(), source.getCreator()); response.setCloudPlatform(source.getCloudPlatform()); response.setName(source.getName()); response.setVerifyPermissions(source.isVerifyPermissions()); response.setVerificationStatusText(source.getVerificationStatusText()); if (source.getAttributes() != null) { convertAttributes(source, response); if (response.getAws() != null) { response.getAws().setGovCloud(source.getGovCloud()); } response.setAttributes(secretConverter.convert(source.getAttributesSecret())); } response.setCrn(source.getResourceCrn()); response.setCreator(source.getCreator()); response.setCreated(source.getCreated()); response.setDescription(source.getDescription() == null ? "" : source.getDescription()); response.setType(source.getType()); response.setAccountId(source.getAccountId()); return response; }  }
CredentialToCredentialV1ResponseConverter { public CredentialResponse convert(Credential source) { CredentialResponse response = new CredentialResponse(); credentialValidator.validateCredentialCloudPlatform(source.getCloudPlatform(), source.getCreator()); response.setCloudPlatform(source.getCloudPlatform()); response.setName(source.getName()); response.setVerifyPermissions(source.isVerifyPermissions()); response.setVerificationStatusText(source.getVerificationStatusText()); if (source.getAttributes() != null) { convertAttributes(source, response); if (response.getAws() != null) { response.getAws().setGovCloud(source.getGovCloud()); } response.setAttributes(secretConverter.convert(source.getAttributesSecret())); } response.setCrn(source.getResourceCrn()); response.setCreator(source.getCreator()); response.setCreated(source.getCreated()); response.setDescription(source.getDescription() == null ? "" : source.getDescription()); response.setType(source.getType()); response.setAccountId(source.getAccountId()); return response; }  CredentialResponse convert(Credential source); Credential convert(CredentialRequest source); Credential convert(ExtendedCloudCredential source); }
CredentialToCredentialV1ResponseConverter { public CredentialResponse convert(Credential source) { CredentialResponse response = new CredentialResponse(); credentialValidator.validateCredentialCloudPlatform(source.getCloudPlatform(), source.getCreator()); response.setCloudPlatform(source.getCloudPlatform()); response.setName(source.getName()); response.setVerifyPermissions(source.isVerifyPermissions()); response.setVerificationStatusText(source.getVerificationStatusText()); if (source.getAttributes() != null) { convertAttributes(source, response); if (response.getAws() != null) { response.getAws().setGovCloud(source.getGovCloud()); } response.setAttributes(secretConverter.convert(source.getAttributesSecret())); } response.setCrn(source.getResourceCrn()); response.setCreator(source.getCreator()); response.setCreated(source.getCreated()); response.setDescription(source.getDescription() == null ? "" : source.getDescription()); response.setType(source.getType()); response.setAccountId(source.getAccountId()); return response; }  CredentialResponse convert(Credential source); Credential convert(CredentialRequest source); Credential convert(ExtendedCloudCredential source);  }