Package org.mule.module.client

Examples of org.mule.module.client.MuleClient.dispose()


        MuleClient client = new MuleClient(muleContext);
        client.dispatch(INPUT_DC_QUEUE_NAME, "test", null);
        MuleMessage message = client.request(OUTPUT_DC_QUEUE_NAME, TIMEOUT);
        assertNotNull(message);
        assertEquals(message.getPayload(), DEFUALT_OUTPUT_MESSAGE);
        client.dispose();

    }

    public void testWithInjectedDelegate() throws Exception
    {
View Full Code Here


        }
        finally
        {
            // Dispose muleClient if created locally
            if (localMuleClient) muleClient.dispose();

            // Always remove the listener if created
            if (listener != null) muleContext.getNotificationManager().removeListener(listener);
        }
    }
View Full Code Here

        }
        finally
        {
            // Dispose muleClient if created locally
            if (localMuleClient) muleClient.dispose();

            // Always reset the current listener
            muleContext.setExceptionListener(currentExceptionListener);
            muleContext.getRegistry().lookupService(serviceName).setExceptionListener(
                currentMessagingListener);
View Full Code Here

            assertNotNull(result);
            assertEquals("test", result.getPayloadAsString());
        }
        finally
        {
            client.dispose();
        }
    }

    // this test is disabled because of MULE-4844
    public void _testRequestResponseComplex() throws Exception
View Full Code Here

            assertEquals("Fred", ((Person)result.getPayload()).getFirstName());
            assertEquals("Flintstone", ((Person)result.getPayload()).getLastName());
        }
        finally
        {
            client.dispose();
        }
    }

    // this test is disabled because of MULE-4844
    public void _testRequestResponseComplex2() throws Exception
View Full Code Here

            message = client.request(DEFUALT_OUTPUT_QUEUE, TIMEOUT);
            assertNull(message);
        }
        finally
        {
            client.dispose();
        }

    }

View Full Code Here

            assertEquals("Betty", ((Person)result.getPayload()).getFirstName());
            assertEquals("Rubble", ((Person)result.getPayload()).getLastName());
        }
        finally
        {
            client.dispose();
        }
    }

    @Override
    protected int getNumPortsToFind()
View Full Code Here

            message = client.request("vm://out2", TIMEOUT);
            assertNull(message);
        }
        finally
        {
            client.dispose();
        }

    }

    public void testInvalidObjectExpression()
View Full Code Here

            assertNotNull(result);
            assertEquals("test", result.getPayloadAsString());
        }
        finally
        {
            client.dispose();
        }
    }

    @Test
    @Ignore("Disabled because of MULE-4844")
View Full Code Here

            assertEquals("Fred", ((Person)result.getPayload()).getFirstName());
            assertEquals("Flintstone", ((Person)result.getPayload()).getLastName());
        }
        finally
        {
            client.dispose();
        }
    }

    @Test
    @Ignore("Disabled because of MULE-4844")
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.