Package org.impalaframework.module.source

Examples of org.impalaframework.module.source.XMLModulelDefinitionDocumentLoader.loadDocument()


public class XMLModuleDefinitionDocumentLoaderTest extends TestCase {

    public final void testLoadDocument() {
        XMLModulelDefinitionDocumentLoader builder = new XMLModulelDefinitionDocumentLoader();
        Document document = builder.loadDocument(new ClassPathResource("xmlspec/moduledefinition.xml"));
        assertNotNull(document);
    }
   
    public final void testNotPresentLoadDocument() {
        XMLModulelDefinitionDocumentLoader builder = new XMLModulelDefinitionDocumentLoader();
View Full Code Here


    }
   
    public final void testNotPresentLoadDocument() {
        XMLModulelDefinitionDocumentLoader builder = new XMLModulelDefinitionDocumentLoader();
        try {
            builder.loadDocument(new ClassPathResource("xmlspec/notpresent.xml"));
            fail();
        }
        catch (ConfigurationException e) {
            assertEquals("Unable to load XML module definition document from resource class path resource [xmlspec/notpresent.xml]", e.getMessage());
        }
View Full Code Here

    }
   
    public final void testBadlyFormedLoadDocument() {
        XMLModulelDefinitionDocumentLoader builder = new XMLModulelDefinitionDocumentLoader();
        try {
            builder.loadDocument(new ClassPathResource("xmlspec/badlyformedspec.xml"));
            fail();
        }
        catch (ConfigurationException e) {
            assertEquals("Unable to load XML module definition document from resource class path resource [xmlspec/badlyformedspec.xml]", e.getMessage());
        }
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.