}
}
public void testScopedChildWithNoDependencyAndGlobalChildWithDependencyOnParentViaAliases() throws Throwable
{
KernelDeployment childDeploymentNoDependencies = createChildDeployment(CHILD + 1, null, APP_SCOPE_2, CHILD);
deploy(childDeploymentNoDependencies);
try
{
List<KernelControllerContext> contextsNoDependencies = childDeploymentNoDependencies.getInstalledContexts();
assertEquals(1, contextsNoDependencies.size());
KernelControllerContext childNoDependencies = contextsNoDependencies.get(0);
assertEquals(ControllerState.INSTALLED, childNoDependencies.getState());
KernelDeployment childDeploymentWithDependencies = createChildDeployment(CHILD + 2, CHILD + 2, PARENT, APP_SCOPE_1, CHILD);
deploy(childDeploymentWithDependencies);
try
{
List<KernelControllerContext> contextsWithDependencies = childDeploymentWithDependencies.getInstalledContexts();
assertEquals(1, contextsWithDependencies.size());
KernelControllerContext childWithDependencies = contextsWithDependencies.get(0);
assertFalse(ControllerState.INSTALLED.equals(childWithDependencies.getState()));
assertNotSame(childNoDependencies.getController(), childWithDependencies.getController());
KernelDeployment parentDeployment = createParentDeployment();
deploy(parentDeployment);
try
{
ControllerContext parent = getControllerContext(PARENT);
ControllerContext child = getControllerContext(CHILD);