checkNotInstalledAndDescribed("NotDeployable2");
deploy(getDependency1DD());
try
{
SimpleBean dependency1 = (SimpleBean) getBean("Dependency1");
assertNotNull(dependency1);
checkInterceptedAndInjected("Depends1", "A", dependency1);
checkInterceptedAndInjected("Depends1", "B", dependency1);
checkNotInstalledAndDescribed("Depends2");
checkNotInstalledAndDescribed("Depends1And2");
checkNotInstalledAndDescribed("NotDeployable");
checkNotInstalledAndDescribed("NotDeployable1");
checkNotInstalledAndDescribed("NotDeployable2");
}
finally
{
undeploy(getDependency1DD());
checkNotInstalledAndDescribed("Depends1");
checkNotInstalledAndDescribed("Depends2");
checkNotInstalledAndDescribed("Depends1And2");
checkNotInstalledAndDescribed("NotDeployable");
checkNotInstalledAndDescribed("NotDeployable1");
checkNotInstalledAndDescribed("NotDeployable2");
}
deploy(getDependency2DD());
try
{
SimpleBean dependency2 = (SimpleBean) getBean("Dependency2");
assertNotNull(dependency2);
checkNotInstalledAndDescribed("Depends1");
checkInterceptedAndInjected("Depends2", "A", dependency2);
checkInterceptedAndInjected("Depends2", "B", dependency2);
checkNotInstalledAndDescribed("Depends1And2");
checkNotInstalledAndDescribed("NotDeployable");
checkNotInstalledAndDescribed("NotDeployable1");
checkNotInstalledAndDescribed("NotDeployable2");
}
finally
{
undeploy(getDependency2DD());
checkNotInstalledAndDescribed("Depends1");
checkNotInstalledAndDescribed("Depends2");
checkNotInstalledAndDescribed("Depends1And2");
checkNotInstalledAndDescribed("NotDeployable");
checkNotInstalledAndDescribed("NotDeployable1");
checkNotInstalledAndDescribed("NotDeployable2");
}
deploy(getDependency1DD());
deploy(getDependency2DD());
try
{
SimpleBean dependency1 = (SimpleBean) getBean("Dependency1");
assertNotNull(dependency1);
SimpleBean dependency2 = (SimpleBean) getBean("Dependency2");
assertNotNull(dependency2);
checkInterceptedAndInjected("Depends1", "A", dependency1);
checkInterceptedAndInjected("Depends1", "B", dependency1);
checkInterceptedAndInjected("Depends2", "A", dependency2);
checkInterceptedAndInjected("Depends2", "B", dependency2);