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

Improve Stream Component test coverage

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.2
    • Fix Version/s: 2.10.0
    • Component/s: camel-stream
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hi,

      I've improved the test coverage of Camel Stream component.

      In particular I've added:

      a) tests for Stream producer writing to the URL output stream (StreamToUrlTest).

      b) assertions to StreamSystemOutTest. Previously we've been sending a messages to the System.out but made no assertions about it. This looked like the AssertionFreeTesting [1]. I changed the test to temporarily switch System.out with another PrintStream instance so we could make some assertions on it.

      Could somebody take a look at patch and possibly apply it to the trunk?

      [1] http://martinfowler.com/bliki/AssertionFreeTesting.html

        Attachments

        1. stream-component-tests.patch
          8 kB
          Henryk Konsek

          Activity

            People

            • Assignee:
              hekonsek Henryk Konsek
              Reporter:
              hekonsek Henryk Konsek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: