Hello list,

I've spent all day trying to figure out how to test this portion of class; 
without going too deep into details, I would like to know how you usually test 
(if you test it) the method

protected void activate(ComponentContext componentContext)

I read from its JavaDoc that this method is called when a configuration for the 
component is found.
How do you create a configuration for the bundle? Is this the way to test it?

In our project, this method is in a base class, and it calls another protected 
method in the actual class under test.
Basically, I need to inject in some way parameters read using 
componentContext.getProperties() and then do some operations.
Do you set the componentContext (field of the base class) with reflection?

Thanks in advance
Ale


_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to