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
MessagingException
public void failingCleanupShouldReportFailures() throws MessagingException
MessagingException
public void tryWithResourceShouldAutomaticallyCleanTheSenders() throws MessagingException, IOException
MessagingException
IOException
public void severalCleanupShouldCleanOnlyOnce() throws MessagingException, IOException
MessagingException
IOException
Copyright © 2021. All rights reserved.