Package org.jboss.test.microcontainer.support

Examples of org.jboss.test.microcontainer.support.ErrorLifecycleCallback


      getAssertInstalledLifecycleCallback("InstallAdvice1");
      getAssertInstalledLifecycleCallback("InstallAdvice2");

      //This is the bean causing the error during its install phase, make sure that both install
      //AND uninstall have been called since install might have had partial success before the error
      ErrorLifecycleCallback error = (ErrorLifecycleCallback)getBean("ErrorAdvice");
      assertTrue(error.isInstalledContext());
      assertTrue(error.isUninstalledContext());

      //This comes after the error advice in the chain, and so should not have had install or uninstall called
      InstallUninstallLifecycleCallback startNotInvoked = (InstallUninstallLifecycleCallback)getBean("InstallAdviceNotInvoked");
      assertFalse(startNotInvoked.isInstalledContext());
      assertFalse(startNotInvoked.isUninstalledContext());
View Full Code Here

TOP

Related Classes of org.jboss.test.microcontainer.support.ErrorLifecycleCallback

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.