Package org.switchyard.config.model.validate

Examples of org.switchyard.config.model.validate.ValidateModel


    @Test
    public void testParenthood() throws Exception {
        SwitchYardModel switchyard_1 = _puller.pull(XML, getClass());
        ValidatesModel validates_1 = switchyard_1.getValidates();
        ValidateModel validate = validates_1.getValidates().get(0);
        ValidatesModel validates_2 = validate.getValidates();
        SwitchYardModel switchyard_2 = validates_2.getSwitchYard();
        Assert.assertEquals(validates_1, validates_2);
        Assert.assertEquals(switchyard_1, switchyard_2);
    }
View Full Code Here


            swConfigStream.close();
        }

        ValidatesModel validates = switchyardConfig.getValidates();

        ValidateModel validateModel = validates.getValidates().get(0);

        if (validateModel == null) {
            Assert.fail("No validate config.");
        }
View Full Code Here

     * @param desc the Descriptor
     */
    public V1ValidatesModel(Configuration config, Descriptor desc) {
        super(config, desc);
        for (Configuration validate_config : config.getChildrenStartsWith(ValidateModel.VALIDATE)) {
            ValidateModel validate = (ValidateModel)readModel(validate_config);
            if (validate != null) {
                _validates.add(validate);
            }
        }
        setModelChildrenOrder(ValidateModel.VALIDATE);
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.validate.ValidateModel

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.