Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-73014

Allow app bundle integration tests to check the content of sent emails

    Details

      Description

      Sometimes, we need to test if a method sent a specific email. Right now, portal-test-integration has an exported class named com.liferay.portal.test.util.MailServiceTestUtil that allows us to get sent messages. However, these messages are instances from com.dumbster.smtp.MailMessage, a exported yet private class from portal-test-integration. Since it is private, we cannot create references to these objects with the correct type and so we cannot call methods from these objects, from modules.

      We need a way to get mail message objects and assert their values.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            adam.brandizzi Adam Brandizzi
            Recent user:
            Lester Pi (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.0.X EE
                Master