From 0e44acbb2fec928a1606dc60f427a148fff405c9 Mon Sep 17 00:00:00 2001
From: Mohamed Ragab <moragab@gmail.com>
Date: Wed, 02 May 2012 11:15:01 -0400
Subject: [PATCH] Added a script to facilitate setting the proxy host and port and no proxy hosts, and then it concatenates all the java system properties for setting the java proxy configurations and puts the resulting string in an environment variable JAVA_PROXY_CONFIG, modified the scirpts gitblit, gitblit-ubuntu, and gitblit-centos to source the java-proxy-config.sh script and then include the resulting java proxy configuration in the java command
---
tests/com/gitblit/tests/MailTest.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/com/gitblit/tests/MailTest.java b/tests/com/gitblit/tests/MailTest.java
index 55002ce..05d55a2 100644
--- a/tests/com/gitblit/tests/MailTest.java
+++ b/tests/com/gitblit/tests/MailTest.java
@@ -15,15 +15,18 @@
*/
package com.gitblit.tests;
+import static org.junit.Assert.assertTrue;
+
import javax.mail.Message;
-import junit.framework.TestCase;
+import org.junit.Test;
import com.gitblit.FileSettings;
import com.gitblit.MailExecutor;
-public class MailTest extends TestCase {
+public class MailTest {
+ @Test
public void testSendMail() throws Exception {
FileSettings settings = new FileSettings("mailtest.properties");
MailExecutor mail = new MailExecutor(settings);
@@ -31,7 +34,7 @@
message.setSubject("Test");
message.setText("this is a test");
mail.queue(message);
- mail.run();
+ mail.run();
assertTrue("mail queue is not empty!", mail.hasEmptyQueue());
}
--
Gitblit v1.9.1