Package org.apache.servicemix.bean.beans

Examples of org.apache.servicemix.bean.beans.PlainBean


        exchange.getInMessage().setContent(new StringSource("<hello>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        MessageExchange answer = bean.getFoo();

        log.info("Bean's foo() method has been invoked: " + answer);

        assertNotNull("Bean's foo() method should bave been invoked", answer);
    }
View Full Code Here


        exchange.getInMessage().setContent(new StringSource("<hello>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        MessageExchange bar = bean.getBar();
        log.info("Bean's bar() method has been invoked: " + bar);

        assertNotNull("Bean's bar() method should bave been invoked", bar);
    }
View Full Code Here

        inMessage.setContent(new StringSource("<hello>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        Object answer = bean.getPropertyParameter();
        log.info("Bean's methodWithPropertyParameter() method has been invoked: " + answer);

        assertEquals("Bean's methodWithPropertyParameter() method should bave been invoked", "James", answer);
    }
View Full Code Here

        inMessage.setContent(new StringSource("<hello address='London'>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        Object property = bean.getPropertyParameter();
        Object xpath = bean.getXpathParameter();
        log.info("Bean's methodWithPropertyParameterAndXPath() method has been with property: "
                + property + " and xpath: " + xpath);

        assertEquals("property parameter", "James", property);
        assertEquals("xpath parameter", "London", xpath);
View Full Code Here

        inMessage.setContent(new StringSource("<hello address='London'>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        Object property = bean.getPropertyParameter();
        Object body = bean.getBody();
        log.info("Bean's methodWithPropertyParameterAndContent() method has been with property: "
                + property + " and body: " + body);

        assertEquals("property parameter", "James", property);
        // TODO need to add a marshalling example
View Full Code Here

        exchange.getInMessage().setContent(new StringSource("<hello>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        MessageExchange answer = bean.getFoo();

        log.info("Bean's foo() method has been invoked: " + answer);

        assertNotNull("Bean's foo() method should bave been invoked", answer);
    }
View Full Code Here

        exchange.getInMessage().setContent(new StringSource("<hello>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        MessageExchange bar = bean.getBar();
        log.info("Bean's bar() method has been invoked: " + bar);

        assertNotNull("Bean's bar() method should bave been invoked", bar);
    }
View Full Code Here

        inMessage.setContent(new StringSource("<hello>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        Object answer = bean.getPropertyParameter();
        log.info("Bean's methodWithPropertyParameter() method has been invoked: " + answer);

        assertEquals("Bean's methodWithPropertyParameter() method should bave been invoked", "James", answer);
    }
View Full Code Here

        inMessage.setContent(new StringSource("<hello address='London'>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        Object property = bean.getPropertyParameter();
        Object xpath = bean.getXpathParameter();
        log.info("Bean's methodWithPropertyParameterAndXPath() method has been with property: " + property + " and xpath: " + xpath);

        assertEquals("property parameter", "James", property);
        assertEquals("xpath parameter", "London", xpath);
    }
View Full Code Here

        inMessage.setContent(new StringSource("<hello address='London'>world</hello>"));
        client.sendSync(exchange);

        assertExchangeWorked(exchange);

        PlainBean bean = (PlainBean) getBean("plainBean");
        Object property = bean.getPropertyParameter();
        Object body = bean.getBody();
        log.info("Bean's methodWithPropertyParameterAndContent() method has been with property: " + property + " and body: " + body);

        assertEquals("property parameter", "James", property);
        // TODO need to add a marshalling example
        //assertEquals("content parameter", "London", body);
View Full Code Here

TOP

Related Classes of org.apache.servicemix.bean.beans.PlainBean

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.