Package mireka.address

Examples of mireka.address.Domain


            ". an invalid. example.net";

    @Test()
    public void testExceptionMessageContainsDomain() {
        MxLookup mxLookup =
                new MxLookup(new Domain(INVALID_EXAMPLE_DOMAIN_NAME));
        try {
            mxLookup.queryMxTargets();
        } catch (MxLookupException e) {
            assertTrue(e.getMessage().contains(INVALID_EXAMPLE_DOMAIN_NAME));
            return;
View Full Code Here


        RemotePart remotePart = commonRecipientRemotePart();
        if (remotePart instanceof AddressLiteral) {
            AddressLiteral addressLiteral = (AddressLiteral) remotePart;
            sendToAddressLiteral(addressLiteral);
        } else if (remotePart instanceof DomainPart) {
            Domain domain = ((DomainPart) remotePart).domain;
            sendToDomain(domain);
        } else {
            throw new RuntimeException();
        }
    }
View Full Code Here

TOP

Related Classes of mireka.address.Domain

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.