Package org.apache.camel.processor.aggregate

Examples of org.apache.camel.processor.aggregate.ClosedCorrelationKeyException


        // should be closed
        try {
            template.sendBodyAndHeader("direct:start", "C", "id", 1);
            fail("Should throw an exception");
        } catch (CamelExecutionException e) {
            ClosedCorrelationKeyException cause = assertIsInstanceOf(ClosedCorrelationKeyException.class, e.getCause());
            assertEquals("1", cause.getCorrelationKey());
            assertEquals("The correlation key [1] has been closed. Exchange[Message: C]", cause.getMessage());
        }

        assertMockEndpointsSatisfied();
    }
View Full Code Here


        // should be closed
        try {
            template.sendBodyAndHeader("direct:start", "H", "id", 2);
            fail("Should throw an exception");
        } catch (CamelExecutionException e) {
            ClosedCorrelationKeyException cause = assertIsInstanceOf(ClosedCorrelationKeyException.class, e.getCause());
            assertEquals("2", cause.getCorrelationKey());
            assertEquals("The correlation key [2] has been closed. Exchange[Message: H]", cause.getMessage());
        }

        // should be closed
        try {
            template.sendBodyAndHeader("direct:start", "I", "id", 3);
            fail("Should throw an exception");
        } catch (CamelExecutionException e) {
            ClosedCorrelationKeyException cause = assertIsInstanceOf(ClosedCorrelationKeyException.class, e.getCause());
            assertEquals("3", cause.getCorrelationKey());
            assertEquals("The correlation key [3] has been closed. Exchange[Message: I]", cause.getMessage());
        }

        assertMockEndpointsSatisfied();
    }
View Full Code Here

        // should be closed
        try {
            template.sendBodyAndHeader("direct:start", "C", "id", 1);
            fail("Should throw an exception");
        } catch (CamelExecutionException e) {
            ClosedCorrelationKeyException cause = assertIsInstanceOf(ClosedCorrelationKeyException.class, e.getCause());
            assertEquals("1", cause.getCorrelationKey());
            assertEquals("The correlation key [1] has been closed. Exchange[Message: C]", cause.getMessage());
        }

        assertMockEndpointsSatisfied();
    }
View Full Code Here

        // should be closed
        try {
            template.sendBodyAndHeader("direct:start", "H", "id", 2);
            fail("Should throw an exception");
        } catch (CamelExecutionException e) {
            ClosedCorrelationKeyException cause = assertIsInstanceOf(ClosedCorrelationKeyException.class, e.getCause());
            assertEquals("2", cause.getCorrelationKey());
            assertEquals("The correlation key [2] has been closed. Exchange[Message: H]", cause.getMessage());
        }

        // should be closed
        try {
            template.sendBodyAndHeader("direct:start", "I", "id", 3);
            fail("Should throw an exception");
        } catch (CamelExecutionException e) {
            ClosedCorrelationKeyException cause = assertIsInstanceOf(ClosedCorrelationKeyException.class, e.getCause());
            assertEquals("3", cause.getCorrelationKey());
            assertEquals("The correlation key [3] has been closed. Exchange[Message: I]", cause.getMessage());
        }

        assertMockEndpointsSatisfied();
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.processor.aggregate.ClosedCorrelationKeyException

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.