Package org.impalaframework.module.source

Examples of org.impalaframework.module.source.XMLModulelDefinitionDocumentLoader


import org.w3c.dom.Document;

public class XMLModuleDefinitionDocumentLoaderTest extends TestCase {

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


        Document document = builder.loadDocument(new ClassPathResource("xmlspec/moduledefinition.xml"));
        assertNotNull(document);
    }
   
    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

            assertEquals("Unable to load XML module definition document from resource class path resource [xmlspec/notpresent.xml]", e.getMessage());
        }
    }
   
    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

Related Classes of org.impalaframework.module.source.XMLModulelDefinitionDocumentLoader

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.