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:
parent
06c48f4444
commit
146f53e404
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ public abstract class AbstractWiserTest {
|
||||||
properties.setProperty("mail.transport.protocol", "smtp");
|
properties.setProperty("mail.transport.protocol", "smtp");
|
||||||
properties.setProperty("mail.smtp.host", "localhost");
|
properties.setProperty("mail.smtp.host", "localhost");
|
||||||
properties.setProperty("mail.smtp.port", "" + PORT);
|
properties.setProperty("mail.smtp.port", "" + PORT);
|
||||||
Session session = Session.getDefaultInstance(properties);
|
Session session = Session.getInstance(properties);
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue