james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rouaz...@apache.org
Subject [08/10] james-project git commit: MAILET-101 enhance MailAttributesToMimeHeadersTest coverage a bit
Date Mon, 05 Sep 2016 13:42:07 GMT
MAILET-101 enhance MailAttributesToMimeHeadersTest coverage a bit


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/7c6b18ab
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/7c6b18ab
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/7c6b18ab

Branch: refs/heads/master
Commit: 7c6b18abf6963396c0d68e4aaf22d399646fa564
Parents: 51ed533
Author: Matthieu Baechler <matthieu.baechler@linagora.com>
Authored: Thu Aug 25 15:18:12 2016 +0200
Committer: Matthieu Baechler <matthieu.baechler@linagora.com>
Committed: Mon Sep 5 14:17:51 2016 +0200

----------------------------------------------------------------------
 .../mailets/MailAttributesToMimeHeadersTest.java     | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/7c6b18ab/mailet/standard/src/test/java/org/apache/james/transport/mailets/MailAttributesToMimeHeadersTest.java
----------------------------------------------------------------------
diff --git a/mailet/standard/src/test/java/org/apache/james/transport/mailets/MailAttributesToMimeHeadersTest.java
b/mailet/standard/src/test/java/org/apache/james/transport/mailets/MailAttributesToMimeHeadersTest.java
index 7c1aeed..df62e87 100644
--- a/mailet/standard/src/test/java/org/apache/james/transport/mailets/MailAttributesToMimeHeadersTest.java
+++ b/mailet/standard/src/test/java/org/apache/james/transport/mailets/MailAttributesToMimeHeadersTest.java
@@ -82,4 +82,19 @@ public class MailAttributesToMimeHeadersTest {
         expectedException.expect(MessagingException.class);
         mailet.init(mailetConfig);
     }
+
+    @Test
+    public void shouldThrowAtInitWhenTwoSemicolumnsInConfigurationEntry() throws MessagingException
{
+        FakeMailetConfig mailetConfig = new FakeMailetConfig("Test", FakeMailContext.defaultContext());
+        mailetConfig.setProperty("simplemapping", "first;second;third");
+        expectedException.expect(MessagingException.class);
+        mailet.init(mailetConfig);
+    }
+
+    @Test
+    public void shouldThrowAtInitWhenNoConfigurationEntry() throws MessagingException {
+        FakeMailetConfig mailetConfig = new FakeMailetConfig("Test", FakeMailContext.defaultContext());
+        expectedException.expect(MessagingException.class);
+        mailet.init(mailetConfig);
+    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message