Details
-
Task
-
Status: Closed
-
Trivial
-
Resolution: Completed
-
None
-
7.0.x
-
Committed
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.