public class CleanupTest extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
CleanupTest.CleanableSender |
| Modifier and Type | Field and Description |
|---|---|
(package private) MessagingBuilder |
builder |
(package private) Email |
email |
(package private) CleanupTest.CleanableSender |
emailSender |
LoggingTestRule |
logging |
org.mockito.junit.MockitoRule |
mockito |
(package private) CleanupTest.CleanableSender |
smsSender |
| Constructor and Description |
|---|
CleanupTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
failingCleanupShouldReportFailures() |
void |
manualCleanupShouldAutomaticallyCleanTheSenders() |
void |
setup() |
void |
severalCleanupShouldCleanOnlyOnce() |
void |
tryWithResourceShouldAutomaticallyCleanTheSenders() |
public final LoggingTestRule logging
public final org.mockito.junit.MockitoRule mockito
@Mock CleanupTest.CleanableSender emailSender
@Mock CleanupTest.CleanableSender smsSender
@Mock Email email
MessagingBuilder builder
public void setup()
public void manualCleanupShouldAutomaticallyCleanTheSenders()
throws MessagingException
MessagingExceptionpublic void failingCleanupShouldReportFailures()
throws MessagingException
MessagingExceptionpublic void tryWithResourceShouldAutomaticallyCleanTheSenders()
throws MessagingException,
IOException
MessagingExceptionIOExceptionpublic void severalCleanupShouldCleanOnlyOnce()
throws MessagingException,
IOException
MessagingExceptionIOExceptionCopyright © 2021. All rights reserved.