@Test public void testConvertCredential() { Credential credential = new Credential(); credential.setName(CRED_NAME); credential.setCloudPlatform(CLOUD_PLATFORM); credential.setCreator(CREATOR); credential.setResourceCrn(CRN); credential.setDescription(DESCRIPTION); credential.setVerificationStatusText(VERIFICATION_STATUS_TEXT); CredentialView result = underTest.convert(credential); assertEquals(CRED_NAME, result.getName()); assertEquals(CLOUD_PLATFORM, result.getCloudPlatform()); assertEquals(CREATOR, result.getCreator()); assertEquals(CRN, result.getResourceCrn()); assertEquals(DESCRIPTION, result.getDescription()); assertEquals(VERIFICATION_STATUS_TEXT, result.getVerificationStatusText()); }
public CredentialViewResponse convert(CredentialView credentialView) { CredentialViewResponse response = new CredentialViewResponse(); response.setName(credentialView.getName()); response.setCloudPlatform(credentialView.getCloudPlatform()); response.setCreator(credentialView.getCreator()); response.setCrn(credentialView.getResourceCrn()); response.setDescription(credentialView.getDescription()); response.setVerificationStatusText(credentialView.getVerificationStatusText()); response.setType(credentialView.getType()); return response; }
CredentialViewConverter { public CredentialViewResponse convert(CredentialView credentialView) { CredentialViewResponse response = new CredentialViewResponse(); response.setName(credentialView.getName()); response.setCloudPlatform(credentialView.getCloudPlatform()); response.setCreator(credentialView.getCreator()); response.setCrn(credentialView.getResourceCrn()); response.setDescription(credentialView.getDescription()); response.setVerificationStatusText(credentialView.getVerificationStatusText()); response.setType(credentialView.getType()); return response; } }
CredentialViewConverter { public CredentialViewResponse convert(CredentialView credentialView) { CredentialViewResponse response = new CredentialViewResponse(); response.setName(credentialView.getName()); response.setCloudPlatform(credentialView.getCloudPlatform()); response.setCreator(credentialView.getCreator()); response.setCrn(credentialView.getResourceCrn()); response.setDescription(credentialView.getDescription()); response.setVerificationStatusText(credentialView.getVerificationStatusText()); response.setType(credentialView.getType()); return response; }  }
CredentialViewConverter { public CredentialViewResponse convert(CredentialView credentialView) { CredentialViewResponse response = new CredentialViewResponse(); response.setName(credentialView.getName()); response.setCloudPlatform(credentialView.getCloudPlatform()); response.setCreator(credentialView.getCreator()); response.setCrn(credentialView.getResourceCrn()); response.setDescription(credentialView.getDescription()); response.setVerificationStatusText(credentialView.getVerificationStatusText()); response.setType(credentialView.getType()); return response; }  CredentialViewResponse convert(CredentialView credentialView); CredentialView convert(Credential credential); }
CredentialViewConverter { public CredentialViewResponse convert(CredentialView credentialView) { CredentialViewResponse response = new CredentialViewResponse(); response.setName(credentialView.getName()); response.setCloudPlatform(credentialView.getCloudPlatform()); response.setCreator(credentialView.getCreator()); response.setCrn(credentialView.getResourceCrn()); response.setDescription(credentialView.getDescription()); response.setVerificationStatusText(credentialView.getVerificationStatusText()); response.setType(credentialView.getType()); return response; }  CredentialViewResponse convert(CredentialView credentialView); CredentialView convert(Credential credential);  }