AbstractWiserTest: always create a new Session for each test

Otherwise properties are ignored on subsequent calls.

Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
This commit is contained in:
Paul Campbell 2016-02-16 22:53:44 +00:00
parent 06c48f4444
commit 146f53e404

View file

@ -57,7 +57,7 @@ public abstract class AbstractWiserTest {
properties.setProperty("mail.transport.protocol", "smtp");
properties.setProperty("mail.smtp.host", "localhost");
properties.setProperty("mail.smtp.port", "" + PORT);
Session session = Session.getDefaultInstance(properties);
Session session = Session.getInstance(properties);
return session;
}