Package org.switchyard.test.mixins

Examples of org.switchyard.test.mixins.PropertyMixIn


*/
public class SwitchYardTestKitTest {

    @Test
    public void test_property_mixin() throws Exception {
        PropertyMixIn pmi = SwitchYardTestKit.newMixInInstance(PropertyMixIn.class, this);
        Assert.assertNotNull(pmi);
        pmi.set("test.name", "ThyName");
        pmi.set("test.value", Integer.valueOf(100));
        String xml = "<test name='${test.name}'>${test.value}</test>";
        Configuration config = new ConfigurationPuller().pull(new StringReader(xml));
        Assert.assertEquals("ThyName", config.getAttribute("name"));
        Assert.assertEquals("100", config.getValue());
    }
View Full Code Here

TOP

Related Classes of org.switchyard.test.mixins.PropertyMixIn

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.