You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2008/11/14 23:11:44 UTC

[jira] Issue Comment Edited: (FELIX-804) Incorporate the Service Registry ListenerHook (RFC 126) work done in the CXF DOSGi project

    [ https://issues.apache.org/jira/browse/FELIX-804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647736#action_12647736 ] 

bosschaert edited comment on FELIX-804 at 11/14/08 2:10 PM:
------------------------------------------------------------------

I guess thats the difference between unit tests and functional tests/system tests. In unit tests you *are* actually testing your implementation details. They are just a way to automatically check that what you've implemented behaves exactly like you've designed it, while in functional tests you're exercising the end user's view. So in my view unit tests are supposed to break when you change implementation details, while functional tests are supposed to remain green. 
I guess I personally always like unit tests because they give me great sleep at night. They tell me that stuff that I wrote works the way I intended it. With functional tests it is sometimes harder to get that level of confidence, as certain conditions are hard to control on that level - think of a caching implementation. That would be hard to test on a functional level.
Anyway, it's probably all down to whatever you like best :)

      was (Author: bosschaert):
    I guess thats the difference between unit tests and functional tests/system tests. In unit tests you *are* actually testing your implementation details. They are just a way to automatically check that what you've implemented behaves exactly like you've designed it, while in functional tests you're exercising the end user's view. So in my view unit tests are supposed to break when you change implementation details, while functional tests are supposed to remain green. 
I guess I personally always like unit tests because they give me great sleep at night. They tell me that stuff that I wrote works the way I intended it. With functional tests it is sometimes harder to get that level of confidence, as certain conditions are hard to control on that level - think of a caching implementation. That would be hard to test on a functional level.
Anyway, it's probably all a matter of taste :)
  
> Incorporate the Service Registry ListenerHook (RFC 126) work done in the CXF DOSGi project
> ------------------------------------------------------------------------------------------
>
>                 Key: FELIX-804
>                 URL: https://issues.apache.org/jira/browse/FELIX-804
>             Project: Felix
>          Issue Type: New Feature
>          Components: Framework
>    Affects Versions: felix-1.4.0
>            Reporter: David Bosschaert
>            Assignee: Richard S. Hall
>             Fix For: felix-1.4.1
>
>         Attachments: ListenerHook.patch
>
>
> This bug relates to https://issues.apache.org/jira/browse/CXF-1897
> The CXF DOSGi project contains an implementation of the ListenerHook of RFC 126. This could should move into Felix.
> See also: http://www.mail-archive.com/dev@felix.apache.org/msg06475.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.