From 146f53e404a8ccea5c44ef753e603f6b9b02a868 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 16 Feb 2016 22:53:44 +0000 Subject: [PATCH] AbstractWiserTest: always create a new Session for each test Otherwise properties are ignored on subsequent calls. Signed-off-by: Paul Campbell --- .../java/net/kemitix/wiser/assertions/AbstractWiserTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/net/kemitix/wiser/assertions/AbstractWiserTest.java b/src/test/java/net/kemitix/wiser/assertions/AbstractWiserTest.java index 5679d74..cea04a6 100644 --- a/src/test/java/net/kemitix/wiser/assertions/AbstractWiserTest.java +++ b/src/test/java/net/kemitix/wiser/assertions/AbstractWiserTest.java @@ -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; }