Package com.softwaremill.common.sqs.email

Examples of com.softwaremill.common.sqs.email.SendEmailTaskExecutor


        assertThat(email.getHeaderValue("From")).isEqualTo(EMAIL_FROM);
        assertThat(email.getHeaderValue("Content-Type")).contains("UTF-8");
    }

    private void sendEmail() throws Exception {
        D.withDependencies(new SendEmailTaskExecutor(), mock(BoundRequestContext.class), new Callable<Void>() {
            @Override
            public Void call() throws Exception {
                // Actually gets sent to SQS, might take some time to receive it
                for (int i = 0; i < 10; i++) {
                    Thread.sleep(1000);
View Full Code Here

TOP

Related Classes of com.softwaremill.common.sqs.email.SendEmailTaskExecutor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.