SHARE
TWEET

Untitled

a guest Oct 21st, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public void testSend() {
  2.        
  3.         List<String> toAddress = new ArrayList<String>();
  4.         toAddress.add("karhui.lee@dhl.com");
  5.        
  6.         String countryCode = "IN";
  7.         String langCode = "en";
  8.         String helpDeskEmail = "helpDeskEmail@test.com";
  9.        
  10.         Map<String, Object> payload = new HashMap<String, Object>();
  11.         payload.put(EssmPayloadKey.CAO_NAME.name(), "Test user account name");
  12.         payload.put(EssmPayloadKey.ECOM_TOOL_USER_DOMAIN_NAME.name(), "Test domain name");
  13.         payload.put(EssmPayloadKey.ECOM_TOOL_USER_ADDED_TO_PREAPPROVEDDOMAIN_DATE.name(), "Test approved date");
  14.         payload.put(EssmPayloadKey.LINK_PREAPPROVEDDOMAIN_USER_REVIEW.name(), reviewPreAppDomainCAOLink);
  15.         payload.put(EssmPayloadKey.ECOM_TOOL_USER_ACCNO.name(), "Test whitelist account number");
  16.        
  17.         String[] subjectArgs = new String[1];
  18.         subjectArgs[0] = "Test domain name";
  19.        
  20.         EmailServiceDTO emailServiceDTO = new EmailServiceDTO();
  21.         emailServiceDTO.setToAddress(toAddress);
  22.         emailServiceDTO.setCountryCode(countryCode);
  23.         emailServiceDTO.setLangCode(langCode);
  24.         emailServiceDTO.setHelpdeskEmailId(helpDeskEmail);
  25.         emailServiceDTO.setPayload(payload);
  26.         emailServiceDTO.setSubjectArgs(subjectArgs);
  27.        
  28.         org.apache.log4j.BasicConfigurator.configure();
  29.        
  30.         sendEmailService.sendEmail(emailServiceDTO, Template.CAO_ETU_APPR_DUETO_PREAPPR_DOMAIN);
  31.        
  32.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top