How to use getEndpoint method of com.consol.citrus.mail.client.MailClientBuilder class

Best Citrus code snippet using com.consol.citrus.mail.client.MailClientBuilder.getEndpoint

Source:MailClientBuilder.java Github

copy

Full Screen

...25public class MailClientBuilder extends AbstractEndpointBuilder<MailClient> {26 /** Endpoint target */27 private MailClient endpoint = new MailClient();28 @Override29 protected MailClient getEndpoint() {30 return endpoint;31 }32 /**33 * Sets the host property.34 * @param host35 * @return36 */37 public MailClientBuilder host(String host) {38 endpoint.getEndpointConfiguration().setHost(host);39 return this;40 }41 /**42 * Sets the port.43 * @param port44 * @return45 */46 public MailClientBuilder port(int port) {47 endpoint.getEndpointConfiguration().setPort(port);48 return this;49 }50 /**51 * Sets the protocol property.52 * @param protocol53 * @return54 */55 public MailClientBuilder protocol(String protocol) {56 endpoint.getEndpointConfiguration().setProtocol(protocol);57 return this;58 }59 /**60 * Sets the username property.61 * @param username62 * @return63 */64 public MailClientBuilder username(String username) {65 endpoint.getEndpointConfiguration().setUsername(username);66 return this;67 }68 /**69 * Sets the password property.70 * @param password71 * @return72 */73 public MailClientBuilder password(String password) {74 endpoint.getEndpointConfiguration().setPassword(password);75 return this;76 }77 /**78 * Sets the Java mail properties.79 * @param javaMailProperties80 * @return81 */82 public MailClientBuilder javaMailProperties(Properties javaMailProperties) {83 endpoint.getEndpointConfiguration().setJavaMailProperties(javaMailProperties);84 return this;85 }86 /**87 * Sets the mail message marshaller.88 * @param marshaller89 * @return90 */91 public MailClientBuilder marshaller(MailMarshaller marshaller) {92 endpoint.getEndpointConfiguration().setMarshaller(marshaller);93 return this;94 }95 /**96 * Sets the message converter.97 * @param messageConverter98 * @return99 */100 public MailClientBuilder messageConverter(MailMessageConverter messageConverter) {101 endpoint.getEndpointConfiguration().setMessageConverter(messageConverter);102 return this;103 }104 /**105 * Sets the default timeout.106 * @param timeout107 * @return108 */109 public MailClientBuilder timeout(long timeout) {110 endpoint.getEndpointConfiguration().setTimeout(timeout);111 return this;112 }113}...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Citrus automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful