use of org.subethamail.wiser.Wiser in project sonarqube by SonarSource.
the class EmailsTest method before.
@BeforeClass
public static void before() throws Exception {
ADMIN_WS_CLIENT = newAdminWsClient(orchestrator);
SETTINGS = ADMIN_WS_CLIENT.settingsService();
SMTP_SERVER = new Wiser(0);
SMTP_SERVER.start();
System.out.println("SMTP Server port: " + SMTP_SERVER.getServer().getPort());
}
use of org.subethamail.wiser.Wiser in project sonarqube by SonarSource.
the class EmailNotificationChannelTest method setUp.
@Before
public void setUp() {
smtpServer = new Wiser(0);
smtpServer.start();
configuration = mock(EmailSettings.class);
underTest = new EmailNotificationChannel(configuration, null, null);
}
use of org.subethamail.wiser.Wiser in project Activiti by Activiti.
the class EmailTestCase method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
boolean serverUpAndRunning = false;
while (!serverUpAndRunning) {
wiser = new Wiser();
wiser.setPort(5025);
try {
wiser.start();
serverUpAndRunning = true;
} catch (RuntimeException e) {
// Fix for slow port-closing Jenkins
if (e.getMessage().toLowerCase().contains("bindexception")) {
Thread.sleep(250L);
}
}
}
}
use of org.subethamail.wiser.Wiser in project sling by apache.
the class SimpleMailServiceIT method setup.
@Before
public void setup() throws Exception {
final int smtpPort = findFreePort();
wiser = new Wiser(smtpPort);
wiser.start();
}
use of org.subethamail.wiser.Wiser in project kernel by exoplatform.
the class TestMailService method setUp.
public void setUp() throws Exception {
PortalContainer pcontainer = PortalContainer.getInstance();
service = (MailService) pcontainer.getComponentInstanceOfType(MailService.class);
// starting dummy SMTP Server
mailServer = new Wiser();
mailServer.setPort(SMTP_PORT);
mailServer.start();
}
Aggregations