diff options
author | James Moger <james.moger@gitblit.com> | 2013-03-29 12:11:05 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-03-29 12:11:05 -0400 |
commit | ffe9bd0ea959cf768983ff1a3d2de897390016d7 (patch) | |
tree | 1f62ba796e0e374a9402350342dcfb0481df195f /src/test/java | |
parent | c5d052400cd60e5b58ba7b5e1fd7706ee0676ab7 (diff) | |
download | gitblit-ffe9bd0ea959cf768983ff1a3d2de897390016d7.tar.gz gitblit-ffe9bd0ea959cf768983ff1a3d2de897390016d7.zip |
Fixed UTF-8 encoding in email notifications (issue 218)
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/com/gitblit/tests/MailTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/java/com/gitblit/tests/MailTest.java b/src/test/java/com/gitblit/tests/MailTest.java index 05d55a24..4feedb06 100644 --- a/src/test/java/com/gitblit/tests/MailTest.java +++ b/src/test/java/com/gitblit/tests/MailTest.java @@ -22,6 +22,7 @@ import javax.mail.Message; import org.junit.Test;
import com.gitblit.FileSettings;
+import com.gitblit.Keys;
import com.gitblit.MailExecutor;
public class MailTest {
@@ -30,9 +31,9 @@ public class MailTest { public void testSendMail() throws Exception {
FileSettings settings = new FileSettings("mailtest.properties");
MailExecutor mail = new MailExecutor(settings);
- Message message = mail.createMessageForAdministrators();
+ Message message = mail.createMessage(settings.getStrings(Keys.mail.adminAddresses));
message.setSubject("Test");
- message.setText("this is a test");
+ message.setText("Lägger till andra stycket i ny fil. UTF-8 encoded");
mail.queue(message);
mail.run();
|