Package org.jboss.classloading.spi.dependency.policy.mock

Examples of org.jboss.classloading.spi.dependency.policy.mock.MockClassLoaderPolicyModule


      MockClassLoadingMetaData a = new MockClassLoadingMetaData("a");
      a.setPathsAndPackageNames(A.class, B.class);
      KernelControllerContext contextA = install(a);
      try
      {
         MockClassLoaderPolicyModule module = assertModule(contextA);
         ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
         List<Capability> capabilities = new ArrayList<Capability>();
         capabilities.add(factory.createModule("a"));
         capabilities.add(factory.createPackage(A.class.getPackage().getName()));
         capabilities.add(factory.createPackage(B.class.getPackage().getName()));
         assertEquals(capabilities, module.getCapabilities());
      }
      finally
      {
         uninstall(contextA);
      }
View Full Code Here


         MockClassLoadingMetaData b = new MockClassLoadingMetaData("b");
         b.setPathsAndPackageNames(B.class);
         KernelControllerContext contextB = install(b);
         try
         {
            MockClassLoaderPolicyModule module = assertModule(contextA);
            assertEquals(requirements, module.getRequirements());
         }
         finally
         {
            uninstall(contextB);
         }
View Full Code Here

TOP

Related Classes of org.jboss.classloading.spi.dependency.policy.mock.MockClassLoaderPolicyModule

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.