Package org.switchyard.config.model.composite.v1

Examples of org.switchyard.config.model.composite.v1.V1ComponentModel


    public void testCreate() throws Exception {
        final String TARGET = "foo";
        final String TARGET_NS = "urn:bar";
        final String STRATEGY = "RoundRobin";
       
        SCABindingModel scab = new V1SCABindingModel(SwitchYardNamespace.DEFAULT.uri());
        scab.setClustered(true)
            .setLoadBalance(STRATEGY)
            .setTarget(TARGET)
            .setTargetNamespace(TARGET_NS);
       
       Assert.assertEquals(STRATEGY, scab.getLoadBalance());
       Assert.assertEquals(TARGET, scab.getTarget());
       Assert.assertEquals(TARGET_NS, scab.getTargetNamespace());

       Assert.assertTrue(scab.isClustered());
       Assert.assertTrue(scab.hasTarget());
       Assert.assertTrue(scab.hasTargetNamespace());
       Assert.assertTrue(scab.isLoadBalanced());
    }
View Full Code Here

TOP

Related Classes of org.switchyard.config.model.composite.v1.V1ComponentModel

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.