Ticket #134 (assigned enhancement)

Opened 2 years ago

Last modified 2 years ago

Discussion: separating functionality to ease unit testing

Reported by: Lawrence Assigned to: dev (accepted)
Priority: minor Milestone: 0.7
Component: Core Version:
Keywords: Discussion Cc:

Description (Last modified by dev)

The top level coherence object is both application starter and repository of functionality and data that could be separated out and simplify testing. Two items:

The list of known devices (Actually root devices) The main users of this is the control point in, that therefore has to know about the coherence main object. Suggest separate into a device_list class. This could then be either part of the upnp.core package, even a singleton.

Similarly the coherence object is the web server, this could be separated into its own class. similarly this means that low level classes do not need to know about the top level object.

I have found any time you have a set of packages where the dependancies are in a loop testing becomes a problem.

Change History

30.04.2008 11:41:57 changed by dev

  • status changed from new to assigned.
  • milestone set to 0.6.

30.04.2008 11:42:42 changed by dev

  • description changed.
  • summary changed from Discussion: sperating functionality to ease unit testing to Discussion: separating functionality to ease unit testing.

31.12.2008 14:09:29 changed by dev

  • milestone changed from 0.6 to 0.7.