The method `getExchanges()` in the class `org.apache.camel.component.mock.MockEndpoint` is used in Java to retrieve a list of exchange objects that have been received by the mock endpoint. These exchange objects represent the messages processed by the endpoint during testing. This method allows for verification of the content and attributes of the exchanged messages in unit tests or other scenarios where the behavior of the mocked endpoint needs to be verified.
Java MockEndpoint.getExchanges - 30 examples found. These are the top rated real world Java examples of org.apache.camel.component.mock.MockEndpoint.getExchanges extracted from open source projects. You can rate examples to help us improve the quality of examples.