Package mireka.transmission.immediate.dns

Examples of mireka.transmission.immediate.dns.MxLookup


    private static final String INVALID_EXAMPLE_DOMAIN_NAME =
            ". 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;
        }
        fail("An exception should have been thrown");
View Full Code Here

TOP

Related Classes of mireka.transmission.immediate.dns.MxLookup

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.