Examples of LatchDownExceptionListener


Examples of org.mule.transport.sftp.LatchDownExceptionListener

    {
        String endpointUrl = "sftp://muletest1:muletest1@localhost:" + port.getNumber() + "/~/inbound2";
        muleClient.dispatch(endpointUrl, TEST_MESSAGE, MESSAGE_PROPERTIES);
        prober.check(new SftpFilePresentProbe(sftpClient, "outbound2", FILENAME));
        final CountDownLatch latch = new CountDownLatch(1);
        muleContext.registerListener(new LatchDownExceptionListener(latch));
        muleClient.dispatch(endpointUrl, TEST_MESSAGE, MESSAGE_PROPERTIES);
        assertTrue(latch.await(3000, TimeUnit.MILLISECONDS));
    }
View Full Code Here

Examples of org.mule.transport.sftp.LatchDownExceptionListener

    @Test
    public void testCantCreateTempDirectory() throws Exception
    {
        Runtime.getRuntime().exec(new String[]{"chmod", "320", OUTBOUND_ENDPOINT_DIR});
        final CountDownLatch exceptionLatch = new CountDownLatch(1);
        muleContext.registerListener(new LatchDownExceptionListener(exceptionLatch));

        MuleClient muleClient = muleContext.getClient();
        muleClient.dispatch("sftp://localhost:" + port.getNumber() + "/" + INBOUND_ENDPOINT_NAME,
            TEST_MESSAGE, MESSAGE_PROPERTIES);
        assertTrue(exceptionLatch.await(EXCEPTION_TIMEOUT, TimeUnit.MILLISECONDS));
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.