Package hu.sztaki.ilab.longneck.process.access

Examples of hu.sztaki.ilab.longneck.process.access.DatabaseSource


    public void unmarshalTest() throws SAXException, IOException, MarshalException, ValidationException {       
        // Load document
        Document doc = documentBuilder.parse(classLoader.getResourceAsStream("unmarshal/database-source.xml"));
       
        LongneckProcess process = (LongneckProcess) unmarshaller.unmarshal(doc);      
        DatabaseSource testedDs = (DatabaseSource) process.getSource();
       
        Assert.assertEquals("connection1", testedDs.getConnectionName());
        Assert.assertEquals("select a, b from test1_source", testedDs.getQuery());
    }
View Full Code Here

TOP

Related Classes of hu.sztaki.ilab.longneck.process.access.DatabaseSource

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.