public void runErrorInInstall(ControllerState state) throws Throwable
{
KernelDeployment repository = deploy("InstallErrorTestCase_Repositories.xml");
try
{
TestBeanRepository repository1 = (TestBeanRepository)getBean("Repository1");
TestBeanRepository repository2 = (TestBeanRepository)getBean("Repository2");
BeanMetaData metaData = createBeanMetaData(state);
KernelControllerContext deployment = deploy(metaData);
try
{
ControllerContext context = getControllerContext("Bean", null);
assertEquals(ControllerState.ERROR, context.getState());
checkThrowable(Error.class, context.getError());
assertEmpty(repository1.getBeans());
assertEmpty(repository2.getBeans());
}
finally
{
undeploy(deployment);
}