* intercept the emails. This class resides in the VM that executes the
* testcases and supplies the intercepted emails to the current test case.
*/
-public final class TestEmailReceiver extends EmailProvider implements Runnable {
+public final class TestEmailReceiver extends EmailProvider implements Runnable, MailReceiver {
/**
* An email that has been intercepted.
* @return The intercepted {@link TestMail}
* @see #poll()
*/
+ @Override
public TestMail receive() {
TestMail poll;
/**
* Removes all queued mails.
*/
+ @Override
public void clearMails() {
mails.clear();
}