This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JUnit 4 | Junit 5 | |
|---|---|---|
| org.junit.Before | org.junit.jupiter.api.BeforeEach | |
| org.junit.After | org.junit.jupiter.api.After | |
| org.junit.BeforeClass | org.junit.jupiter.api.BeforeAll | |
| org.junit.AfterClass | org.junit.jupiter.api.AfterAll | |
| org.junit.Ignore | org.junit.jupiter.api.Disabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SMTPServerExtension implements BeforeEachCallback, AfterEachCallback { | |
| private GreenMail smtpServer; | |
| private String hostname; | |
| private int port; | |
| public SMTPServerExtension() { | |
| this(25); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SMTPServerRule extends ExternalResource { | |
| private GreenMail smtpServer; | |
| private String hostname; | |
| private int port; | |
| public SMTPServerRule() { | |
| this(25); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class TemporaryFolderExtension implements BeforeEachCallback, AfterEachCallback { | |
| private final File parentFolder; | |
| private File folder; | |
| public TemporaryFolderExtension() { | |
| this(null); | |
| } | |
| public TemporaryFolderExtension(File parentFolder) { |
NewerOlder