commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <>
Subject Re: [email] test cases
Date Fri, 29 Oct 2004 12:18:25 GMT
Testcase: testSetFrom2(org.apache.commons.mail.EmailTest):	FAILED
Should have thrown an exception
junit.framework.AssertionFailedError: Should have thrown an exception
	at org.apache.commons.mail.EmailTest.testSetFrom2(

which is this piece of code

            MockEmailConcrete anotherEmail = new MockEmailConcrete();
            // set a dodgy encoding scheme
            // set a valid address but bad personal name
            anotherEmail.setFrom("", "\\n");
            fail("Should have thrown an exception");

The AddressException patches I submitted yesterday help it throw if
the name is snide. But I couldn't get it throwing
unsupportedcharseteception for the life of me.


On Fri, 29 Oct 2004 20:08:06 +0800, Corey Scott <> wrote:
> Mark,
> Can you please clarify regarding the unsupportedcharset exception,  as
> I have had no problem with this, except for this fact that the unicode
> chars are not being submitted to the cvs nicely.
> Thanks,
> Corey

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message