Package passport.infra
Class DisabledEmailService
java.lang.Object
passport.infra.DisabledEmailService
- All Implemented Interfaces:
EmailService
A mock implementation of the EmailService interface used for testing
purposes. This class captures the email document instead of sending it,
allowing tests to verify email content without actually sending emails.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionemail()
Returns the captured email document.void
send
(EmailDocument email) Captures the email document instead of sending it.
-
Constructor Details
-
DisabledEmailService
public DisabledEmailService()
-
-
Method Details
-
send
Captures the email document instead of sending it.- Specified by:
send
in interfaceEmailService
- Parameters:
email
- the email document to capture
-
email
Returns the captured email document.- Returns:
- the captured email document
-