Package org.jboss.soa.esb.helpers

Examples of org.jboss.soa.esb.helpers.ConfigTree


        instance = new ScheduleProvider(schedulerConfig, schedules);

        try {
            for(ManagedLifecycle listener : listeners) {
                if(listener instanceof ScheduledEventListener) {
                    ConfigTree config = listener.getConfig();
                    String scheduleIdRef = config.getAttribute(ATTR_SCHEDULE_ID_REF);

                    if(scheduleIdRef != null) {
                        instance.addListener((ScheduledEventListener) listener, scheduleIdRef);
                    } else {
                        long frequency = config.getLongAttribute(ATTR_FREQUENCY, 10);
                        instance.addListener((ScheduledEventListener) listener, frequency);
                    }
                }
            }
        } catch (SchedulingException e) {
View Full Code Here


    public SOAPClient_Response_UnitTest() throws IOException, SAXException, ConfigurationException {
        configUtil = new ESBConfigUtil(getClass().getResourceAsStream("soapclient-config-01.xml"));
    }

    public void test_XStream_ResponseProcessing() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-01");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, response_01);
        assertEquals(true, message.getBody().get());
View Full Code Here

        assertEquals(false, message.getBody().get());
    }

    @SuppressWarnings("unchecked")
    public void test_OgnlMap_ResponseProcessing_1() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-02");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, response_01);
        Map<String, String> response = (Map<String, String>) message.getBody().get();
View Full Code Here

        response = (Map<String, String>) message.getBody().get();
        assertEquals("false", response.get("customerOrderAck"));
    }

    public void test_OgnlMap_ResponseProcessing_2() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-05");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        String responseString = new String(StreamUtils.readStream(getClass().getResourceAsStream("soap-message-01.xml")));
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, new Response(responseString));
View Full Code Here

        //assertEquals();
    }

    @SuppressWarnings("unchecked")
    public void test_OgnlMap_ResponseProcessing_3() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-02");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        String responseString = new String(StreamUtils.readStream(getClass().getResourceAsStream("soap-message-01.xml")));
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, new Response(responseString));
View Full Code Here

        assertEquals("{customerOrder.orderheader.customerName=Tom Fennelly, customerOrder.items[0].partNumber=1, customerOrder.items[0].description=desc-1, customerOrder.items[0].quantity=1, customerOrder.items[0].price=1.1, customerOrder.items[0].extensionAmount=1, customerOrder.items[1].partNumber=2, customerOrder.items[1].description=desc-2, customerOrder.items[1].quantity=2, customerOrder.items[1].price=2.2, customerOrder.items[1].extensionAmount=2}", responseMap.toString());
    }

    public void test_OgnlMap_ResponseProcessing_4() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-02");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        String responseString = new String(StreamUtils.readStream(getClass().getResourceAsStream("soap-message-02.xml")));
        String expected = "{processOrderResponse.OrderStatus.id=1," +
                          " processOrderResponse.OrderStatus.comment=order processed," +
                          " processOrderResponse.OrderStatus.returnCode=1," +
View Full Code Here

        assertEquals(expected, responseMap.toString());
    }

    public void test_OgnlMap_ResponseProcessing_JBESB_1946() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-02");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        String responseString = new String(StreamUtils.readStream(getClass().getResourceAsStream("soap-message-03.xml")));
        String expected = "{orderResponse.orderStatus[0].id=1," +
                          " orderResponse.orderStatus[0].comment=order 1 processed," +
                          " orderResponse.orderStatus[1].id=2," +
View Full Code Here

        assertEquals(expected, responseMap.toString());
    }

    public void test_No_ResponseProcessing() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-03");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, response_01);
        assertEquals(response_01.getBody(), message.getBody().get());
View Full Code Here

        soapClient.processResponse(message, response_01);
        assertEquals(response_01.getBody(), message.getBody().get());
    }

    public void test_ResponseLocation() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-04");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        Message message = MessageFactory.getInstance().getMessage();

        soapClient.processResponse(message, response_01);
        assertEquals(response_01.getBody(), message.getBody().get("myTestLocation"));
View Full Code Here

        soapClient.processResponse(message, response_01);
        assertEquals(response_01.getBody(), message.getBody().get("myTestLocation"));
    }

    public void test_getEndpointOperation() throws ConfigurationException, ActionProcessingException {
        ConfigTree actionConfig = configUtil.getActionConfig("OrderNotificationService", "soapui-client-action-07");
        SOAPClient soapClient = new SOAPClient(actionConfig);
        assertEquals("SendSalesOrderNotification", soapClient.getEndpointOperation());
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.helpers.ConfigTree

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.