summaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-03-29 12:11:05 -0400
committerJames Moger <james.moger@gitblit.com>2013-03-29 12:11:05 -0400
commitffe9bd0ea959cf768983ff1a3d2de897390016d7 (patch)
tree1f62ba796e0e374a9402350342dcfb0481df195f /src/test/java
parentc5d052400cd60e5b58ba7b5e1fd7706ee0676ab7 (diff)
downloadgitblit-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.java5
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();