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

Improve Stream Component test coverage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.2
    • 2.10.0
    • camel-stream
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: