keycloak-aplcache

Ooops....

11/5/2013 10:43:11 AM

Details

diff --git a/services/src/test/java/org/keycloak/services/email/EmailSenderTest.java b/services/src/test/java/org/keycloak/services/email/EmailSenderTest.java
index 77863f5..70a9456 100644
--- a/services/src/test/java/org/keycloak/services/email/EmailSenderTest.java
+++ b/services/src/test/java/org/keycloak/services/email/EmailSenderTest.java
@@ -57,7 +57,7 @@ public class EmailSenderTest {
     }
 
     @Test
-    public void sendMail() throws AddressException, MessagingException, IOException {
+    public void sendMail() throws MessagingException, IOException {
         emailSender.send("test@test.com", "Test subject", "Test body");
 
         MimeMessage[] receivedMessages = greenMail.getReceivedMessages();
@@ -70,36 +70,4 @@ public class EmailSenderTest {
         Assert.assertEquals("Test body", ((String) msg.getContent()).trim());
     }
 
-    @Test
-    public void googleTTLS() throws MessagingException, IOException {
-        HashMap<String,String> config = new HashMap<String, String>();
-        config.put("from", "stianst@gmail.com");
-        config.put("host", "smtp.gmail.com");
-        config.put("port", "587");
-        config.put("auth", "true");
-        config.put("user", "stianst@gmail.com");
-        config.put("password", "ahqsbktqbfhwmhrw");
-        config.put("starttls", "true");
-
-        emailSender = new EmailSender(config);
-
-        emailSender.send("stianst@gmail.com", "TTLS " + System.currentTimeMillis(), "Test body");
-    }
-
-    @Test
-    public void googleSSL() throws MessagingException, IOException {
-        HashMap<String,String> config = new HashMap<String, String>();
-        config.put("from", "stianst@gmail.com");
-        config.put("host", "smtp.gmail.com");
-        config.put("port", "465");
-        config.put("auth", "true");
-        config.put("user", "stianst@gmail.com");
-        config.put("password", "ahqsbktqbfhwmhrw");
-        config.put("ssl", "true");
-
-        emailSender = new EmailSender(config);
-
-        emailSender.send("stianst@gmail.com", "SSL " + System.currentTimeMillis(), "Test body");
-    }
-
 }