@Test public void testEmailNotification() { EmailNotification notification = new EmailNotification("root@localhost", "root@localhost", "localhost", "test", "test"); notification.run(); }
public EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body) { this.fromEmail = fromEmail; this.toEmail = toEmail; this.smtpHost = smtpHost; this.subject = subject; this.body = body; }
EmailNotification implements Runnable { public EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body) { this.fromEmail = fromEmail; this.toEmail = toEmail; this.smtpHost = smtpHost; this.subject = subject; this.body = body; } }
EmailNotification implements Runnable { public EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body) { this.fromEmail = fromEmail; this.toEmail = toEmail; this.smtpHost = smtpHost; this.subject = subject; this.body = body; } EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body); }
EmailNotification implements Runnable { public EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body) { this.fromEmail = fromEmail; this.toEmail = toEmail; this.smtpHost = smtpHost; this.subject = subject; this.body = body; } EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body); @Override void run(); }
EmailNotification implements Runnable { public EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body) { this.fromEmail = fromEmail; this.toEmail = toEmail; this.smtpHost = smtpHost; this.subject = subject; this.body = body; } EmailNotification(String fromEmail, String toEmail, String smtpHost, String subject, String body); @Override void run();  }