OSDN Git Service

de9c23fe03fd9cbbc5a6c84b2e82f6a4e6bebbf5
[spring-ext/ozacc-mail.git] / src / test / com / ozacc / mail / fetch / impl / FetchMailProImplRealTest.java
1 package com.ozacc.mail.fetch.impl;\r
2 \r
3 import junit.framework.TestCase;\r
4 \r
5 import org.apache.log4j.BasicConfigurator;\r
6 \r
7 /**\r
8  * \r
9  * @since 1.2\r
10  * @author Tomohiro Otsuka\r
11  * @version $Id: FetchMailProImplRealTest.java,v 1.1.2.3 2005/01/18 07:29:31 otsuka Exp $\r
12  */\r
13 public class FetchMailProImplRealTest extends TestCase {\r
14 \r
15         private String username = "username";\r
16 \r
17         private String password = "password";\r
18 \r
19         private String protocol = "pop3";\r
20 \r
21         private String host = "localhost";\r
22 \r
23         private FetchMailProImpl fetchMail;\r
24 \r
25         /*\r
26          * @see TestCase#setUp()\r
27          */\r
28         protected void setUp() throws Exception {\r
29                 super.setUp();\r
30                 BasicConfigurator.configure();\r
31 \r
32                 fetchMail = new FetchMailProImpl();\r
33                 fetchMail.setHost(host);\r
34                 fetchMail.setProtocol(protocol);\r
35                 fetchMail.setUsername(username);\r
36                 fetchMail.setPassword(password);\r
37         }\r
38 \r
39         /*\r
40          * @see TestCase#tearDown()\r
41          */\r
42         protected void tearDown() throws Exception {\r
43                 super.tearDown();\r
44                 BasicConfigurator.resetConfiguration();\r
45         }\r
46 \r
47         /*public void testGetMails() throws Exception {\r
48          fetchMail.connect();\r
49          ReceivedMail[] mails = fetchMail.getMails(false);\r
50          fetchMail.disconnect();\r
51          }*/\r
52 \r
53         /**\r
54          * テストケースがひとつもないとビルド時にエラーになるので、ダミー。\r
55          */\r
56         public void testDummy() {\r
57                 assertTrue(true);\r
58         }\r
59 }