Package mireka.address.parser.ast

Examples of mireka.address.parser.ast.MailboxAST


        assertEquals("[IPv6:2001:DB8::]", mailboxAST.remotePartAST.spelling);
    }

    @Test
    public void testIpv4Address() throws Exception {
        MailboxAST mailboxAST = parse("john@[192.0.2.0]");
        assertEquals(InetAddress.getByName("192.0.2.0"),
                ((Ipv4RemotePartAST) (mailboxAST.remotePartAST)).ipv4.address);
        assertEquals(InetAddress.getByName("192.0.2.0"),
                ((AddressLiteralRemotePartAST) (mailboxAST.remotePartAST)).address);
    }
View Full Code Here


                ((AddressLiteralRemotePartAST) (mailboxAST.remotePartAST)).address);
    }

    @Test
    public void testIpv6Address() throws Exception {
        MailboxAST mailboxAST = parse("john@[IPv6:2001:DB8::]");
        assertEquals(InetAddress.getByName("[2001:DB8::]"),
                ((Ipv6RemotePartAST) (mailboxAST.remotePartAST)).ipv6.address);
        assertEquals(InetAddress.getByName("[2001:DB8::]"),
                ((AddressLiteralRemotePartAST) (mailboxAST.remotePartAST)).address);
    }
View Full Code Here

TOP

Related Classes of mireka.address.parser.ast.MailboxAST

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.