Package org.jboss.test.kernel.controller.support

Examples of org.jboss.test.kernel.controller.support.TestBeanRepository


   public void testErrorInInstall() throws Throwable
   {
      KernelDeployment repository = deploy("InstallErrorTestCase_Repositories.xml");
      try
      {
         TestBeanRepository repository1 = (TestBeanRepository) getBean("Repository1");
         TestBeanRepository repository2 = (TestBeanRepository) getBean("Repository2");
         KernelDeployment deployment = deploy("InstallErrorTestCase_Bean.xml");
         try
         {
            ControllerContext context = getControllerContext("Bean", null);
            assertEquals(ControllerState.ERROR, context.getState());
            checkThrowable(Error.class, context.getError());
            assertTrue(repository1.getBeans().isEmpty());
            assertTrue(repository2.getBeans().isEmpty());
         }
         finally
         {
            undeploy(deployment);
         }
View Full Code Here


   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);
         }
View Full Code Here

TOP

Related Classes of org.jboss.test.kernel.controller.support.TestBeanRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.