Subversion Repositories javautils

Rev

Rev 3 | Rev 21 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 9
1
package de.viathinksoft.utils.mail.sender;
1
package eMailTests;
2
 
2
 
3
// Statische Klasse, die unsere Konfiguration für Tests verwaltet.
3
// Statische Klasse, die unsere Konfiguration für Tests verwaltet.
4
// Ginge auch als Singleton
4
// Ginge auch als Singleton
5
 
5
 
6
public final class TestConfiguration {
6
public final class TestConfiguration {
7
        public static String getSpamAddress() {
7
        public static String getSpamAddress() {
8
                // Gott habe Mitleid mit dem Eigentümer dieser E-Mail-Adresse...
8
                // Gott habe Mitleid mit dem Eigentümer dieser E-Mail-Adresse...
9
                return "b973768@owlpic.com";
9
                return "b973768@owlpic.com";
10
 
10
 
11
                // Eine Wegwerfadresse für manuelle Tests kann auf
11
                // Eine Wegwerfadresse für manuelle Tests kann auf
12
                // www.10minutemail.com erstellt werden.
12
                // www.10minutemail.com erstellt werden.
13
        }
13
        }
14
       
14
       
15
        public static String getSmtpHost() {
15
        public static String getSmtpHost() {
16
                return "";
16
                return "";
17
        }
17
        }
18
       
18
       
19
        public static String getSmtpUsername() {
19
        public static String getSmtpUsername() {
20
                return "";
20
                return "";
21
        }
21
        }
22
       
22
       
23
        public static String getSmtpPassword() {
23
        public static String getSmtpPassword() {
24
                return "";
24
                return "";
25
        }
25
        }
26
       
26
       
27
        public static int getSmtpPort() {
27
        public static int getSmtpPort() {
28
                return 25;
28
                return 25;
29
        }
29
        }
30
       
30
       
31
        public static String getMailFrom() {
31
        public static String getMailFrom() {
32
                return getSpamAddress();
32
                return getSpamAddress();
33
        }
33
        }
34
       
34
       
35
        private TestConfiguration() {
35
        private TestConfiguration() {
36
        }
36
        }
37
}
37
}
38
 
38