use of org.subethamail.wiser.Wiser in project modesti by jlsalmon.
the class MailConfig method wiser.
@Bean(initMethod = "start", destroyMethod = "stop")
public Wiser wiser() {
Wiser wiser = new Wiser();
wiser.setPort(25000);
wiser.setHostname("localhost");
return wiser;
}
use of org.subethamail.wiser.Wiser in project jbpm by kiegroup.
the class EmailNotificationPublisherTest method setUp.
@Before
public void setUp() throws Exception {
System.setProperty("org.jbpm.email.templates.dir", new File("src/test/resources/templates").getAbsolutePath());
TemplateManager.reset();
ChainedProperties props = ChainedProperties.getChainedProperties("email.conf", ClassLoaderUtil.getClassLoader(null, getClass(), false));
emailHost = props.getProperty("mail.smtp.host", "localhost");
emailPort = props.getProperty("mail.smtp.port", "2345");
wiser = new Wiser();
wiser.setHostname(emailHost);
wiser.setPort(Integer.parseInt(emailPort));
wiser.start();
Thread.sleep(200);
connection = new Connection(emailHost, emailPort);
userInfo = new DefaultUserInfo(true);
}
use of org.subethamail.wiser.Wiser in project jbpm by kiegroup.
the class EmailWorkItemHandlerTest method setUp.
@Before
public void setUp() throws Exception {
System.setProperty("org.jbpm.email.templates.dir", new File("src/test/resources/templates").getAbsolutePath());
TemplateManager.reset();
ChainedProperties props = ChainedProperties.getChainedProperties("email.conf", ClassLoaderUtil.getClassLoader(null, getClass(), false));
emailHost = props.getProperty("mail.smtp.host", "localhost");
emailPort = props.getProperty("mail.smtp.port", "2345");
wiser = new Wiser();
wiser.setHostname(emailHost);
wiser.setPort(Integer.parseInt(emailPort));
wiser.start();
Thread.sleep(200);
}
use of org.subethamail.wiser.Wiser in project jbpm by kiegroup.
the class SendHtmlTest method setUp.
@Before
public void setUp() throws Exception {
uniqueTestNum = random.nextInt(Integer.MAX_VALUE);
emailHost = "localhost";
int emailPortInt;
do {
emailPortInt = random.nextInt((2 * Short.MAX_VALUE - 1));
} while (emailPortInt < 4096);
emailPort = Integer.toString(emailPortInt);
wiser = new Wiser(Integer.parseInt(emailPort));
wiser.start();
}
use of org.subethamail.wiser.Wiser in project jbpm by kiegroup.
the class TaskReminderTest method setup.
@Before
public void setup() {
final ChainedProperties props = ChainedProperties.getChainedProperties("email.conf", ClassLoaderUtil.getClassLoader(null, getClass(), false));
wiser = new Wiser();
wiser.setHostname(props.getProperty("mail.smtp.host", "localhost"));
wiser.setPort(Integer.parseInt(props.getProperty("mail.smtp.port", "2345")));
wiser.start();
try {
Thread.sleep(1000);
} catch (Throwable t) {
// Do nothing
}
pds = setupPoolingDataSource();
emf = Persistence.createEntityManagerFactory("org.jbpm.services.task");
this.taskService = (InternalTaskService) HumanTaskServiceFactory.newTaskServiceConfigurator().entityManagerFactory(emf).getTaskService();
}
Aggregations