Class TestMailServer.MailServer

java.lang.Object
org.springframework.integration.test.mail.TestMailServer.MailServer
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
TestMailServer.ImapServer, TestMailServer.Pop3Server, TestMailServer.SmtpServer
Enclosing class:
TestMailServer

public abstract static class TestMailServer.MailServer extends Object implements Runnable
  • Field Details

  • Method Details

    • getPort

      public int getPort()
    • isListening

      public boolean isListening()
    • getMessages

      public List<String> getMessages()
    • resetServer

      public void resetServer()
    • assertReceived

      public boolean assertReceived(String assertion)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • mailHandler

      protected abstract TestMailServer.MailServer.MailHandler mailHandler(Socket socket)
    • stop

      public void stop()