org.subethamail.smtp.test.util
Class ServerTestCase.TestWiser
java.lang.Object
org.subethamail.wiser.Wiser
org.subethamail.smtp.test.util.ServerTestCase.TestWiser
- All Implemented Interfaces:
- SimpleMessageListener
- Enclosing class:
- ServerTestCase
public class ServerTestCase.TestWiser
- extends Wiser
Override the accept method in Wiser so we can test
the accept method().
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerTestCase.TestWiser
public ServerTestCase.TestWiser()
accept
public boolean accept(String from,
String recipient)
- Description copied from class:
Wiser
- Always accept everything
- Specified by:
accept in interface SimpleMessageListener- Overrides:
accept in class Wiser
- Parameters:
from - is a rfc822-compliant email address.recipient - is a rfc822-compliant email address.
- Returns:
- true if the listener wants delivery of the message, false if the
message is not for this listener.
Copyright © 2006-2011. All Rights Reserved.