Package org.jboss.soa.esb.testutils

Examples of org.jboss.soa.esb.testutils.AbstractTestRunner.run()


                waitForMockSet(message);
                assertTrue("Message equality", checkMessageEquality(message, MockAction.message));
            }
        }.setServiceConfig("in-listener-config-01.xml");

        testRunner.run();
    }

    public void test_async_lockstep() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here


                assertEquals(true, ((InVMEpr)eprs.get(0)).getLockstep());
                assertEquals(4000, ((InVMEpr)eprs.get(0)).getLockstepWaitTime());
            }
        }.setServiceConfig("in-listener-config-04.xml");

        testRunner.run();
    }

    public void test_sync_noerror() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here

                assertTrue("Message equality", checkMessageEquality(message, MockAction.message));
                assertTrue("Message equality", checkMessageEquality(message, response));
            }
        }.setServiceConfig("in-listener-config-01.xml");

        testRunner.run();
    }

    public void test_sync_error() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here

                    assertEquals("org.jboss.soa.esb.actions.ActionProcessingException: invm_sync_error", e.getMessage());
                }
            }
        }.setServiceConfig("in-listener-config-01.xml");

        testRunner.run();
    }

    public void test_JBESB_1865() throws Exception {
        ESBConfigUtil configUtil = new ESBConfigUtil(getClass().getResourceAsStream("in-listener-config-JBESB-1865.xml"));
View Full Code Here

                assertTrue(message != MockAction.message);
                assertEquals("This message was passed by value!", MockAction.message.getBody().get());
            }
        }.setServiceConfig("in-listener-config-05.xml");

        testRunner.run();
    }

    public void test_sync_multithreaded() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here

                    }
                }
            }
        }.setServiceConfig("in-listener-config-03.xml");

        testRunner.run();
    }

    public void test_none_scoped() throws ManagedLifecycleException, SAXException, ParamRepositoryException, MessageDeliverException, IOException {
        try {
            new ESBConfigUtil(getClass().getResourceAsStream("in-listener-config-02.xml"));
View Full Code Here

                Message response = invoker.deliverSync(request, 10000);
                assertEquals("Goodbye", response.getBody().get());
            }
        }.setServiceConfig("sync-invoker-config-01.xml");

        testRunner.run();
    }

    public void test_exception_fail() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here

                    assertEquals("Error delivering message to service 'Services:ServiceB'", e.getCause().getMessage());
                }
            }
        }.setServiceConfig("sync-invoker-config-01.xml");

        testRunner.run();
    }

    public void test_exception_OK() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here

                invoker.deliverSync(request, 10000);
            }
        }.setServiceConfig("sync-invoker-config-02.xml");

        testRunner.run();
    }

    public void x_test_transaction_not_suspend() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here

                assertFalse(suspendedTxStrategy.suspended);
                assertFalse(suspendedTxStrategy.resumed);
            }
        }.setServiceConfig("sync-invoker-config-01.xml");

        testRunner.run();
    }

    public void x_test_transaction_suspend() throws Exception {
        AbstractTestRunner testRunner = new AbstractTestRunner() {
            public void test() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.