Package org.jboss.test.classloading.lifecycle.support.a

Examples of org.jboss.test.classloading.lifecycle.support.a.MockLifeCycle


   }
  
   protected MockLifeCycle assertNotResolved(KernelControllerContext context) throws Exception
   {
      assertNoClassLoader(context);
      MockLifeCycle lifeCycle = assertLifeCycle(context);
      assertFalse(context.getName() + " should be unresolved", lifeCycle.isResolved());
      assertFalse(context.getName() + " should be no resolved notification", lifeCycle.gotResolved);
      assertFalse(context.getName() + " should not be started", lifeCycle.isStarted());
      return lifeCycle;
   }
View Full Code Here


   }
  
   protected MockLifeCycle assertUnresolved(KernelControllerContext context) throws Exception
   {
      assertNoClassLoader(context);
      MockLifeCycle lifeCycle = assertLifeCycle(context);
      assertFalse(context.getName() + " should be unresolved", lifeCycle.isResolved());
      assertTrue(context.getName() + " should be an unresolved notification", lifeCycle.gotUnresolved);
      assertFalse(context.getName() + " should not be started", lifeCycle.isStarted());
      return lifeCycle;
   }
View Full Code Here

      return lifeCycle;
   }
  
   protected ClassLoader assertResolved(KernelControllerContext context) throws Exception
   {
      MockLifeCycle lifeCycle = assertLifeCycle(context);
      assertTrue(context.getName() + " should be resolved: " + context.getDependencyInfo().getUnresolvedDependencies(null), lifeCycle.isResolved());
      assertTrue(context.getName() + " should be a resolved notification", lifeCycle.gotResolved);
      assertFalse(context.getName() + " should not be started", lifeCycle.isStarted());
      return assertClassLoader(context);
   }
View Full Code Here

      return assertClassLoader(context);
   }
  
   protected ClassLoader assertStarted(KernelControllerContext context) throws Exception
   {
      MockLifeCycle lifeCycle = assertLifeCycle(context);
      assertTrue(context.getName() + " should be resolved: " + context.getDependencyInfo().getUnresolvedDependencies(null), lifeCycle.isResolved());
      assertTrue(context.getName() + " should be started", lifeCycle.isStarted());
      assertEquals(ControllerState.INSTALLED, context.getState());
      return assertClassLoader(context);
   }
View Full Code Here

   }

   protected MockLifeCycle assertLifeCycle(KernelControllerContext context) throws Exception
   {
      MockLifeCycleClassLoaderPolicyModule module = assertMockClassPolicyModule(context);
      MockLifeCycle result = (MockLifeCycle) module.getLifeCycle();
      assertNotNull(result);
      return result;
   }
View Full Code Here

      metaData.getRequirements().addRequirement(new PackageRequirement(ClassLoaderUtils.getClassPackageName(A.class.getName())));
      KernelControllerContext context = install(metaData);
      try
      {
         assertNotResolved(context);
         MockLifeCycle lifeCycleA = assertNotResolved(contextA);
         lifeCycleA.lazyResolve = true;
        
         resolve(context);
         ClassLoader cl = assertResolved(context);
View Full Code Here

      MockClassLoadingMetaData metaData = new MockClassLoadingMetaData("test");
      metaData.setPathsAndPackageNames(A.class);
      KernelControllerContext context = install(metaData);
      try
      {
         MockLifeCycle lifeCycle = assertNotResolved(context);
         lifeCycle.lazyStart = true;
        
         resolve(context);
         ClassLoader cl = assertResolved(context);
         assertLoadClass(A.class, cl);
View Full Code Here

TOP

Related Classes of org.jboss.test.classloading.lifecycle.support.a.MockLifeCycle

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.