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
MessagingException
public void emailSentSuccessfullyOnThirdExecution() throws MessagingException
MessagingException
public void emailNotSentDueToMaximumAttemptsReached() throws MessagingException
MessagingException
public void emailNotRetriedOnFirstExecutionDueToParsingError() throws MessagingException
MessagingException
public void smsSentSuccessfullyOnFirstExecution() throws MessagingException
MessagingException
public void smsSentSuccessfullyOnThirdExecution() throws MessagingException
MessagingException
public void smsNotSentDueToMaximumAttemptsReached() throws MessagingException
MessagingException
public void smsNotRetriedOnFirstExecutionDueToParsingError() throws MessagingException
MessagingException
Copyright © 2021. All rights reserved.