On Thu, 10 Feb 2005 15:29:17 +0100, Pander <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> Can someone fix builds/jakarta-commons/nightly/commons-email/ so that the
> binary builds are working again?

FWIW, the compile part works fine, but the unit tests fail.  Here's
the output of "ant dist".  It's going to take one of email's
developers to tell us what's going on, and/or how to configure my
system (on which the nightly builds are executed) to correctly execute
the unit tests.

Craig


Buildfile: build.xml

init:

get-deps:
      [get] Getting:
http://www.ibiblio.org/maven/commons-lang/jars/commons-lang-2.0.jar
      [get] Not modified - so not downloaded
      [get] Getting: file:/usr/local/javamail-1.3.2/lib/mailapi.jar
      [get] Getting: file:/usr/local/jaf-1.0.2/activation.jar
      [get] Getting: http://www.ibiblio.org/maven/dumbster/jars/dumbster-1.5.jar
      [get] Not modified - so not downloaded

compile:
    [mkdir] Created dir:
/home/craigmcc/Build/jakarta/commons/trunks-proper/email/target/classes
    [javac] Compiling 8 source files to
/home/craigmcc/Build/jakarta/commons/trunks-proper/email/target/classes

junit-present:

compile-tests:
    [mkdir] Created dir:
/home/craigmcc/Build/jakarta/commons/trunks-proper/email/target/test-classes
    [javac] Compiling 13 source files to
/home/craigmcc/Build/jakarta/commons/trunks-proper/email/target/test-classes

internal-test:
    [mkdir] Created dir:
/home/craigmcc/Build/jakarta/commons/trunks-proper/email/target/test-reports
    [junit] Running org.apache.commons.mail.DefaultAuthenticatorTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.73 sec
    [junit] Testsuite: org.apache.commons.mail.DefaultAuthenticatorTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.73 sec

    [junit] Testcase: testDefaultAuthenticatorConstructor took 0.693 sec
    [junit] Running org.apache.commons.mail.EmailAttachmentTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.561 sec
    [junit] Testsuite: org.apache.commons.mail.EmailAttachmentTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.561 sec

    [junit] Testcase: testGetSetDescription took 0.012 sec
    [junit] Testcase: testGetSetName took 0 sec
    [junit] Testcase: testGetSetPath took 0 sec
    [junit] Testcase: testGetSetURL took 0.417 sec
    [junit] Testcase: testGetSetDisposition took 0 sec
    [junit] Running org.apache.commons.mail.EmailTest
    [junit] Tests run: 36, Failures: 2, Errors: 0, Time elapsed: 1.683 sec
    [junit] Testsuite: org.apache.commons.mail.EmailTest
    [junit] Tests run: 36, Failures: 2, Errors: 0, Time elapsed: 1.683 sec

    [junit] Testcase: testGetSetDebug took 0.141 sec
    [junit] Testcase: testGetSetSession took 0.059 sec
    [junit] Testcase: testGetSetAuthentication took 0.003 sec
    [junit] Testcase: testGetSetAuthenticator took 0 sec
    [junit] Testcase: testGetSetCharset took 0 sec
    [junit] Testcase: testSetContentMimeMultipart took 0.269 sec
    [junit] Testcase: testSetContentObject took 0.113 sec
    [junit] Testcase: testGetSetHostName took 0.007 sec
    [junit] Testcase: testGetSetSmtpPort took 0.002 sec
    [junit] Testcase: testSetFrom took 0.008 sec
    [junit] Testcase: testSetFromWithEnconding took 0.001 sec
    [junit] Testcase: testSetFrom2 took 0.031 sec
    [junit] Testcase: testAddTo took 0.001 sec
    [junit] Testcase: testAddToWithEncoding took 0 sec
    [junit] Testcase: testAddTo2 took 0.003 sec
    [junit] Testcase: testSetTo took 0.001 sec
    [junit] Testcase: testAddCc took 0.001 sec
    [junit] Testcase: testAddCcWithEncoding took 0 sec
    [junit] Testcase: testAddCc2 took 0.006 sec
    [junit] Testcase: testSetCc took 0.001 sec
    [junit] Testcase: testAddBcc took 0.001 sec
    [junit] Testcase: testAddBccWithEncoding took 0 sec
    [junit] Testcase: testAddBcc2 took 0.011 sec
    [junit] Testcase: testSetBcc took 0.002 sec
    [junit] Testcase: testAddReplyTo took 0 sec
    [junit] Testcase: testAddReplyToWithEncoding took 0 sec
    [junit] Testcase: testAddReplyTo2 took 0.007 sec
    [junit] Testcase: testAddHeader took 0.003 sec
    [junit] Testcase: testAddHeaderEx took 0 sec
    [junit] Testcase: testSetHeaders took 0.001 sec
    [junit] Testcase: testSetHeadersEx took 0 sec
    [junit] Testcase: testSetSubject took 0 sec
    [junit] Testcase: testSendEx took 0.842 sec
    [junit]     FAILED
    [junit] Mail server failed to start
    [junit] junit.framework.AssertionFailedError: Mail server failed to start
    [junit]     at
org.apache.commons.mail.BaseEmailTestCase.getMailServer(BaseEmailTestCase.java:179)
    [junit]     at
org.apache.commons.mail.EmailTest.testSendEx(EmailTest.java:1440)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    [junit] Testcase: testGetSetSentDate took 0.029 sec
    [junit]     FAILED
    [junit] expected:<Thu Feb 10 05:01:58 PST 2005> but was:<Thu Feb
10 05:01:58 PST 2005>
    [junit] junit.framework.AssertionFailedError: expected:<Thu Feb 10
05:01:58 PST 2005> but was:<Thu Feb 10 05:01:58 PST 2005>
    [junit]     at
org.apache.commons.mail.EmailTest.testGetSetSentDate(EmailTest.java:1555)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    [junit] Testcase: testToInternetAddressArray took 0.001 sec
    [junit] Testcase: testSetPopBeforeSmtp took 0 sec
    [junit] Test org.apache.commons.mail.EmailTest FAILED
    [junit] Running org.apache.commons.mail.HtmlEmailTest
    [junit] Tests run: 6, Failures: 1, Errors: 1, Time elapsed: 2.709 sec
    [junit] Testsuite: org.apache.commons.mail.HtmlEmailTest
    [junit] Tests run: 6, Failures: 1, Errors: 1, Time elapsed: 2.709 sec

    [junit] Testcase: testGetSetTextMsg took 0.242 sec
    [junit] Testcase: testGetSetHtmlMsg took 0 sec
    [junit] Testcase: testGetSetMsg took 0 sec
    [junit] Testcase: testEmbed took 0.692 sec
    [junit] Testcase: testSend took 1.146 sec
    [junit]     FAILED
    [junit] Unexpected exception thrown
    [junit] junit.framework.AssertionFailedError: Unexpected exception thrown
    [junit]     at
org.apache.commons.mail.HtmlEmailTest.testSend(HtmlEmailTest.java:299)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    [junit] Testcase: testSend2 took 0.589 sec
    [junit]     Caused an ERROR
    [junit] javax.mail.NoSuchProviderException: smtp
    [junit] org.apache.commons.mail.EmailException:
javax.mail.NoSuchProviderException: smtp
    [junit]     at org.apache.commons.mail.Email.send(Email.java:824)
    [junit]     at
org.apache.commons.mail.MultiPartEmail.send(MultiPartEmail.java:212)
    [junit]     at org.apache.commons.mail.HtmlEmail.send(HtmlEmail.java:223)
    [junit]     at
org.apache.commons.mail.HtmlEmailTest.testSend2(HtmlEmailTest.java:374)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [junit]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [junit] Caused by: javax.mail.NoSuchProviderException: smtp
    [junit]     at javax.mail.Session.getService(Session.java:750)
    [junit]     at javax.mail.Session.getTransport(Session.java:689)
    [junit]     at javax.mail.Session.getTransport(Session.java:632)
    [junit]     at javax.mail.Session.getTransport(Session.java:612)
    [junit]     at javax.mail.Session.getTransport(Session.java:667)
    [junit]     at javax.mail.Transport.send0(Transport.java:148)
    [junit]     at javax.mail.Transport.send(Transport.java:80)
    [junit]     at org.apache.commons.mail.Email.send(Email.java:821)
    [junit]     ... 18 more


BUILD FAILED
/home/craigmcc/Build/jakarta/commons/trunks-proper/email/build.xml:85:
Test org.apache.commons.mail.HtmlEmailTest failed

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to