Package org.apache.james.domainlist.xml

Examples of org.apache.james.domainlist.xml.XMLDomainList.configure()


    // See https://issues.apache.org/jira/browse/JAMES-998
    public void testNoConfiguredDomains() throws Exception {
        List<String> domains = new ArrayList<String>();
        XMLDomainList dom = new XMLDomainList();
        dom.setLog(new SimpleLog("MockLog"));
        dom.configure(setUpConfiguration(false, false, domains));
        dom.setDNSService(setUpDNSServer("localhost"));

        assertNull("No domain found", dom.getDomains());
    }
View Full Code Here


        domains.add("domain1.");
        domains.add("domain2.");
   
        XMLDomainList dom = new XMLDomainList();
        dom.setLog(new SimpleLog("MockLog"));
        dom.configure(setUpConfiguration(false,false,domains));
        dom.setDNSService(setUpDNSServer("localhost"));
       
        assertTrue("Two domain found",dom.getDomains().length ==2);
    }
   
View Full Code Here

        List<String> domains = new ArrayList<String>();
        domains.add("domain1.");
   
        XMLDomainList dom = new XMLDomainList();
        dom.setLog(new SimpleLog("MockLog"));
        dom.configure(setUpConfiguration(true,false,domains));

        dom.setDNSService(setUpDNSServer("local"));
        assertEquals("Two domains found",dom.getDomains().length, 2);
    }
   
View Full Code Here

        List<String> domains = new ArrayList<String>();
        domains.add("domain1.");
   
        XMLDomainList dom = new XMLDomainList();
        dom.setLog(new SimpleLog("MockLog"));
        dom.configure(setUpConfiguration(true,false,domains));

        dom.setDNSService(setUpDNSServer("localhost"));
       
        assertEquals("One domain found",dom.getDomains().length, 1);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.