Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2853 Testing toolbox for Remote Delivery
  3. JAMES-2864

POJO for Mock Smtp server behavior, receive email

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • Remote Delivery, tests
    • None

    Description

      Designing POJO models be used by the MockSMTPServer and the HttpRoutes.

      We will merge the java bean (POJO) and DTO into one so no need to the translator.
      
      ### The final MockSetup format:
        {
        	"command": "RCPT",
              "condition": {
                  "operator": "contains",
        	    "matchingValue": "pippin got the ring"
              },
        	"response": {
                  "code": 504,
                  "rejected": false,
                  "message": "server is out of memory"
              },
        	"numberOfAnswer": 7
        }
      
      ### The MockMail format this will be used in the route of getting all stored email of the SMTP server
      
      {
         "envelope": {
             "from": "from@domain.tld",
             "recipients": ["recipient1@domain.tld", "recipient2@domain.tld"]
         },
         "content": "mail content here"
      }
      

      Attachments

        Activity

          People

            btellier Benoit Tellier
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: