1 package com.ozacc.mail.fetch.impl;
\r
3 import junit.framework.TestCase;
\r
5 import org.apache.log4j.BasicConfigurator;
\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
13 public class FetchMailProImplRealTest extends TestCase {
\r
15 private String username = "username";
\r
17 private String password = "password";
\r
19 private String protocol = "pop3";
\r
21 private String host = "localhost";
\r
23 private FetchMailProImpl fetchMail;
\r
26 * @see TestCase#setUp()
\r
28 protected void setUp() throws Exception {
\r
30 BasicConfigurator.configure();
\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
40 * @see TestCase#tearDown()
\r
42 protected void tearDown() throws Exception {
\r
44 BasicConfigurator.resetConfiguration();
\r
47 /*public void testGetMails() throws Exception {
\r
48 fetchMail.connect();
\r
49 ReceivedMail[] mails = fetchMail.getMails(false);
\r
50 fetchMail.disconnect();
\r
54 * テストケースがひとつもないとビルド時にエラーになるので、ダミー。
\r
56 public void testDummy() {
\r