|
23 | 23 | import java.util.List;
|
24 | 24 | import java.util.Properties;
|
25 | 25 | import java.util.concurrent.CountDownLatch;
|
26 |
| -import java.util.concurrent.ExecutionException; |
27 | 26 | import java.util.concurrent.TimeUnit;
|
28 | 27 | import java.util.concurrent.atomic.AtomicInteger;
|
29 | 28 | import java.util.concurrent.atomic.AtomicReference;
|
|
76 | 75 | import org.springframework.integration.handler.AbstractReplyProducingMessageHandler;
|
77 | 76 | import org.springframework.integration.history.MessageHistory;
|
78 | 77 | import org.springframework.integration.mail.support.DefaultMailHeaderMapper;
|
| 78 | +import org.springframework.integration.test.condition.LogLevels; |
79 | 79 | import org.springframework.integration.test.util.TestUtils;
|
80 | 80 | import org.springframework.messaging.MessageHeaders;
|
81 | 81 | import org.springframework.messaging.PollableChannel;
|
|
111 | 111 | @ContextConfiguration(
|
112 | 112 | "classpath:org/springframework/integration/mail/config/ImapIdleChannelAdapterParserTests-context.xml")
|
113 | 113 | @DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_EACH_TEST_METHOD)
|
| 114 | +@LogLevels(level = "debug", |
| 115 | + categories = { |
| 116 | + "org.springframework.integration.mail", |
| 117 | + "com.icegreen.greenmail", |
| 118 | + "jakarta.mail" |
| 119 | + }) |
114 | 120 | public class ImapMailReceiverTests {
|
115 | 121 |
|
116 | 122 | private static final ImapSearchLoggingHandler imapSearches = new ImapSearchLoggingHandler();
|
@@ -139,7 +145,7 @@ static void teardown() {
|
139 | 145 | }
|
140 | 146 |
|
141 | 147 | @BeforeEach
|
142 |
| - void startImapServer() throws ExecutionException, InterruptedException { |
| 148 | + void startImapServer() { |
143 | 149 | imapSearches.searches.clear();
|
144 | 150 | imapSearches.stores.clear();
|
145 | 151 | ServerSetup imap = ServerSetupTest.IMAP.verbose(true).dynamicPort();
|
|
0 commit comments