Package hu.sztaki.ilab.longneck.process

Examples of hu.sztaki.ilab.longneck.process.LongneckProcess


       
        // Load document
        Document doc = documentBuilder.parse(classLoader.getResourceAsStream("unmarshal/cut.xml"));
       
        // Unmarshal document
        LongneckProcess process = (LongneckProcess) unmarshaller.unmarshal(doc);
       
        Assert.assertTrue((process.getBlocks().get(0) instanceof Cut));
       
        Cut testedCut = (Cut) process.getBlocks().get(0);
        Assert.assertEquals(cut.getApplyTo(), testedCut.getApplyTo());
        Assert.assertEquals(cut.getValue(), testedCut.getValue());
    }
View Full Code Here


       
        // Load document
        Document doc = documentBuilder.parse(classLoader.getResourceAsStream("unmarshal/copy.xml"));
       
        // Unmarshal document
        LongneckProcess process = (LongneckProcess) unmarshaller.unmarshal(doc);
       
        assertTrue((process.getBlocks().get(0) instanceof Copy));
       
        Copy testedCopy = (Copy) process.getBlocks().get(0);
        assertEquals(applyTo, testedCopy.getApplyTo());
        assertEquals(copy.getFrom(), testedCopy.getFrom());
    }
View Full Code Here

TOP

Related Classes of hu.sztaki.ilab.longneck.process.LongneckProcess

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.