Source:
<code>public void testReload() throws Exception { deployContrib("org.nuxeo.runtime.test.tests", "CompA.xml"); <START> applyInlineDeployments(); <END> assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); deployContrib("org.nuxeo.runtime.test.tests", "CompB.xml"); applyInlineDeployments(); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); deployContrib("org.nuxeo.runtime.test.tests", "CompC.xml"); applyInlineDeployments(); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompB"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompC"))); runtime.getComponentManager().stop(); undeployContrib("org.nuxeo.runtime.test.tests", "CompC.xml"); undeployContrib("org.nuxeo.runtime.test.tests", "CompA.xml"); undeployContrib("org.nuxeo.runtime.test.tests", "CompB.xml"); runtime.getComponentManager().start(); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompB"))); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompC"))); deployContrib("org.nuxeo.runtime.test.tests", "CompA.xml"); applyInlineDeployments(); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); deployContrib("org.nuxeo.runtime.test.tests", "CompB.xml"); applyInlineDeployments(); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); deployContrib("org.nuxeo.runtime.test.tests", "CompC.xml"); applyInlineDeployments(); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompB"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompC"))); }</code><technical_language>pushInlineDeployments</technical_language>

Target:
public void testReload() throws Exception { pushInlineDeployments("org.nuxeo.runtime.test.tests:CompA.xml"); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); pushInlineDeployments("org.nuxeo.runtime.test.tests:CompB.xml"); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); pushInlineDeployments("org.nuxeo.runtime.test.tests:CompC.xml"); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompB"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompC"))); runtime.getComponentManager().stop(); undeployContrib("org.nuxeo.runtime.test.tests", "CompC.xml"); undeployContrib("org.nuxeo.runtime.test.tests", "CompA.xml"); undeployContrib("org.nuxeo.runtime.test.tests", "CompB.xml"); runtime.getComponentManager().start(); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompB"))); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompC"))); pushInlineDeployments("org.nuxeo.runtime.test.tests:CompA.xml"); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); pushInlineDeployments("org.nuxeo.runtime.test.tests:CompB.xml"); assertNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); pushInlineDeployments("org.nuxeo.runtime.test.tests:CompC.xml"); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompA"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompB"))); assertNotNull(Framework.getRuntime().getComponent(new ComponentName("CompC"))); }