public class AutoRetryTest extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) MessageSender |
emailSender |
LoggingTestRule |
logging |
org.mockito.junit.MockitoRule |
mockito |
(package private) MessagingService |
service |
(package private) MessageSender |
smsSender |
| Constructor and Description |
|---|
AutoRetryTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
emailNotRetriedOnFirstExecutionDueToParsingError() |
void |
emailNotSentDueToMaximumAttemptsReached() |
void |
emailSentSuccessfullyOnFirstExecution() |
void |
emailSentSuccessfullyOnThirdExecution() |
void |
setup() |
void |
smsNotRetriedOnFirstExecutionDueToParsingError() |
void |
smsNotSentDueToMaximumAttemptsReached() |
void |
smsSentSuccessfullyOnFirstExecution() |
void |
smsSentSuccessfullyOnThirdExecution() |
public final LoggingTestRule logging
public final org.mockito.junit.MockitoRule mockito
@Mock MessageSender emailSender
@Mock MessageSender smsSender
MessagingService service
public void setup()
public void emailSentSuccessfullyOnFirstExecution()
throws MessagingException
MessagingExceptionpublic void emailSentSuccessfullyOnThirdExecution()
throws MessagingException
MessagingExceptionpublic void emailNotSentDueToMaximumAttemptsReached()
throws MessagingException
MessagingExceptionpublic void emailNotRetriedOnFirstExecutionDueToParsingError()
throws MessagingException
MessagingExceptionpublic void smsSentSuccessfullyOnFirstExecution()
throws MessagingException
MessagingExceptionpublic void smsSentSuccessfullyOnThirdExecution()
throws MessagingException
MessagingExceptionpublic void smsNotSentDueToMaximumAttemptsReached()
throws MessagingException
MessagingExceptionpublic void smsNotRetriedOnFirstExecutionDueToParsingError()
throws MessagingException
MessagingExceptionCopyright © 2021. All rights reserved.