Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1890

Improve MockExchangeFactory so the mock exchanges have a MEP and exchange id

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • servicemix-utils-1.3.0
    • servicemix-utils-1.4.0
    • servicemix-utils
    • None

    Description

      servicemix-util has a MockExchangeFactory which can help you write unit tests, however the mock exchanges it creates are missing a mep and exchange id:

      ExchangeFactory factory = new MockExchangeFactory();
      MessageExchange exchange = factory.createInOnlyExchange();
      exchange.getExchangeId() -> returns null
      exchange.getPattern() -> returns null
      

      Attachments

        1. SM-1890-patch.txt
          5 kB
          Ioannis Canellos

        Activity

          People

            gertvanthienen Gert Vanthienen
            gertvanthienen Gert Vanthienen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: