FELIX-2233 Ensure new component instances (created for factory configurations) are not enabled if the component has been disabled by ComponentContext.disableComponent(String)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@926971 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/test/resources/integration_test_simple_components.xml b/scr/src/test/resources/integration_test_simple_components.xml
index c6e90f0..5bbfee8 100644
--- a/scr/src/test/resources/integration_test_simple_components.xml
+++ b/scr/src/test/resources/integration_test_simple_components.xml
@@ -58,6 +58,14 @@
<property name="service.pid" value="FactoryConfigurationComponent" />
</scr:component>
+ <!-- component instances created by factory configuration -->
+ <scr:component name="FactoryConfigurationComponent_enabled"
+ enabled="true"
+ configuration-policy="require" >
+ <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
+ <property name="service.pid" value="FactoryConfigurationComponent" />
+ </scr:component>
+
<!-- component is a simple service to verify non-use of private props -->
<scr:component name="ServiceComponent"
enabled="false" immediate="true"