You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Henryk Konsek (JIRA)" <ji...@apache.org> on 2012/06/06 17:25:22 UTC

[jira] [Reopened] (CAMEL-5336) Improve Stream Component test coverage

     [ https://issues.apache.org/jira/browse/CAMEL-5336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henryk Konsek reopened CAMEL-5336:
----------------------------------


I'm reopening this since I need to update the Stream component documentation. Now usage example in documentation is generated from JUnit snippet - after my modification the snippet will be boilerplated. I'll create neat and clean dedicated code example.
                
> Improve Stream Component test coverage
> --------------------------------------
>
>                 Key: CAMEL-5336
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5336
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-stream
>    Affects Versions: 2.9.2
>            Reporter: Henryk Konsek
>            Assignee: Henryk Konsek
>             Fix For: 2.10.0
>
>         Attachments: stream-component-tests.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira