* @see #destroy()
*/
public void start() {
- new Thread(this, "Mail reciever").start();
+ new Thread(this, "Mail receiver").start();
}
private LinkedBlockingQueue<TestMail> mails = new LinkedBlockingQueue<TestEmailReceiver.TestMail>();
poll = mails.poll(60, TimeUnit.SECONDS);
} catch (InterruptedException e) {
- throw new AssertionError("Interrupted while recieving mails");
+ throw new AssertionError("Interrupted while receiving mails");
}
if (poll == null) {
- throw new AssertionError("Mail recieving timed out");
+ throw new AssertionError("Mail receiving timed out");
}
return poll;
}
@Override
- public void sendmail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException {
+ public void sendMail(String to, String subject, String message, String from, String replyto, String toname, String fromname, String errorsto, boolean extra) throws IOException {
mails.add(new TestMail(to, subject, message, from, replyto));
}