The `expectedMessageCount` property in the `org.apache.camel.component.mock.MockEndpoint` class in Java is used to set the expected number of messages that should be received by the mock endpoint during testing. This property is commonly used in unit testing scenarios where the behavior of the system under test needs to be verified against a predetermined number of messages. By setting the `expectedMessageCount`, developers can assert that the correct number of messages has been received by the mock endpoint, ensuring the desired functionality of the tested component.
Java MockEndpoint.expectedMessageCount - 30 examples found. These are the top rated real world Java examples of org.apache.camel.component.mock.MockEndpoint.expectedMessageCount extracted from open source projects. You can rate examples to help us improve the quality of examples.