FileDocCategorySizeDatePackage
EmailAddressTest.javaAPI DocApache Ant 1.702952Wed Dec 13 06:16:24 GMT 2006org.apache.tools.ant.taskdefs.email

EmailAddressTest

public class EmailAddressTest extends TestCase
since
Ant 1.6

Fields Summary
Constructors Summary
public EmailAddressTest(String name)

        super(name);
    
Methods Summary
private voidexpectNameAddress(EmailAddress e)

        assertEquals( "name", e.getName() );
        assertEquals( "address", e.getAddress() );
    
private voidexpectNameAddress2(EmailAddress e)

        assertEquals( "<name>", e.getName() );
        assertEquals( "address", e.getAddress() );
    
private voidexpectNameAddress3(EmailAddress e)

        assertTrue( "Expected null, found <" + e.getName() + ">",
            e.getName() == null );
        assertEquals( "address", e.getAddress() );
    
public voidsetUp()

    
public voidtest1()

        expectNameAddress( new EmailAddress("address (name)") );
    
public voidtest2()

        expectNameAddress( new EmailAddress("(name) address") );
    
public voidtest3()

        expectNameAddress( new EmailAddress("name <address>") );
    
public voidtest4()

        expectNameAddress( new EmailAddress("<address> name") );
    
public voidtest5()

        expectNameAddress( new EmailAddress("<address> (name)") );
    
public voidtest6()

        expectNameAddress( new EmailAddress("(name) <address>") );
    
public voidtest7()

        expectNameAddress2( new EmailAddress("address (<name>)") );
    
public voidtest8()

        expectNameAddress2( new EmailAddress("(<name>) address") );
    
public voidtest9()

        expectNameAddress3( new EmailAddress("address") );
    
public voidtestA()

        expectNameAddress3( new EmailAddress("<address>") );
    
public voidtestB()

        expectNameAddress3( new EmailAddress(" <address> ") );
    
public voidtestC()

        expectNameAddress3( new EmailAddress("< address >") );
    
public voidtestD()

        expectNameAddress3( new EmailAddress(" < address > ") );