Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7756

org.apache.camel.issues.OnCompletionIssueTest fails because of order dependency

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.14.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      This test fails intermittently with the error below as it is using MockEndpoint.expectedBodiesReceived() even though it uses parallelProcessing() in the route. The test should use MockEndpoint.expectedBodiesReceivedInAnyOrder() instead

      java.lang.AssertionError: mock://complete Body of message: 0. Expected: <finish> but was: <stop>
      at org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1333)
      at org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1315)
      at org.apache.camel.component.mock.MockEndpoint$5.run(MockEndpoint.java:628)
      at org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:394)
      at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:362)
      at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:350)
      at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:188)
      at org.apache.camel.ContextTestSupport.assertMockEndpointsSatisfied(ContextTestSupport.java:343)
      at org.apache.camel.issues.OnCompletionIssueTest.testOnCompletionIssue(OnCompletionIssueTest.java:39)

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              kearls Kevin Earls
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: