From 9deafc485e17c946f70e79fb0bb28f24e79e46d1 Mon Sep 17 00:00:00 2001 From: bbottema Date: Sat, 4 May 2024 18:45:45 +0200 Subject: [PATCH] remove async demo example as it keeps the JVM alive --- .../cli-module/src/test/java/demo/CliDemoApp.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/modules/cli-module/src/test/java/demo/CliDemoApp.java b/modules/cli-module/src/test/java/demo/CliDemoApp.java index a5b14e9a..4538f773 100644 --- a/modules/cli-module/src/test/java/demo/CliDemoApp.java +++ b/modules/cli-module/src/test/java/demo/CliDemoApp.java @@ -25,7 +25,6 @@ public static void main(String[] args) { demoTestConnection(serverConfig); demoSend(serverConfig); - demoSendAsync(serverConfig); demoSendUsingFileAsHTMLBody(serverConfig); } @@ -49,18 +48,6 @@ private static void demoSend(ServerConfig serverConfig) { }); } - private static void demoSendAsync(ServerConfig serverConfig) { - CliSupport.runCLI(new String[]{ - "send", - "--email:forwarding", SOURCE_FOLDER + "/test/resources/test-messages/HTML mail with replyto and attachment and embedded image.msg", - "--email:from", "Test sender", DemoAppBase.YOUR_GMAIL_ADDRESS, - "--email:to", "Test Receiver", DemoAppBase.YOUR_GMAIL_ADDRESS, - "--mailer:async", - "--mailer:withSMTPServer", "smtp.gmail.com", "587", serverConfig.getUsername(), serverConfig.getPassword(), - "--mailer:withTransportStrategy", "SMTP_TLS" - }); - } - private static void demoSendUsingFileAsHTMLBody(ServerConfig serverConfig) { CliSupport.runCLI(new String[]{ "send",