1 package com.ozacc.mail.fetch.impl;
\r
3 import junit.framework.TestCase;
\r
5 import org.apache.log4j.BasicConfigurator;
\r
8 * FetchMailImplクラスのテストケース。実際にメールサーバから受信して確認するテストです。
\r
11 * @author Tomohiro Otsuka
\r
12 * @version $Id: FetchMailImplRealTest.java,v 1.1.2.5 2005/01/23 06:52:04 otsuka Exp $
\r
14 public class FetchMailImplRealTest extends TestCase {
\r
16 private String username = "username";
\r
18 private String password = "password";
\r
20 private String protocol = "pop3";
\r
22 private String host = "localhost";
\r
24 private FetchMailImpl fetchMail;
\r
27 * @see TestCase#setUp()
\r
29 protected void setUp() throws Exception {
\r
31 BasicConfigurator.configure();
\r
33 fetchMail = new FetchMailImpl();
\r
34 fetchMail.setHost(host);
\r
35 fetchMail.setProtocol(protocol);
\r
36 fetchMail.setUsername(username);
\r
37 fetchMail.setPassword(password);
\r
41 * @see TestCase#tearDown()
\r
43 protected void tearDown() throws Exception {
\r
45 BasicConfigurator.resetConfiguration();
\r
48 /*public void testGetMails() throws Exception {
\r
49 ReceivedMail[] mails = fetchMail.getMails(true);
\r
50 for (int i = 0; i < mails.length; i++) {
\r
51 ReceivedMail mail = mails[i];
\r
56 * テストケースがひとつもないとビルド時にエラーになるので、ダミー。
\r
58 public void testDummy() {
\r