}
}
public void testExternalMcBeanInjectedIntoWeldInitiallyNotPresentThenDeployed() throws Exception
{
VirtualFile weldEar = VFS.getChild("weld.ear");
createAssembledDirectory(weldEar)
.addPath("/weld/mcandweld/ear/weldonly");
createWeldLib(weldEar, "/weld/mcandweld/weld", WeldBeanWithInjectedMcBean.class);
try
{
testBootstrap(weldEar, null);
fail("Weld deployment should not have worked without mc deployment");
}
catch(Exception expected)
{
}
VirtualFile mcEar = VFS.getChild("mc.ear");
createAssembledDirectory(mcEar)
.addPath("/weld/mcandweld/ear/mconly");
createMcLib(mcEar, "/weld/mcandweld/mc/simple", SimpleBean.class);
Deployment mc = deploy(mcEar);
try