Examples of createRequirePackage()


Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testRequirements() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VFSClassLoaderFactory test = new VFSClassLoaderFactory();
      test.getRequirements().addRequirement(factory.createRequireModule("module"));
      test.getRequirements().addRequirement(factory.createRequirePackage("package"));
      ManagedObject mo = assertManagedObject(test);
      assertManagedProperty(mo, "requirements", RequirementsMetaData.class, test.getRequirements());
   }
}
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testImportOnePackageNoVersion() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal();
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequirePackage("export1"));
   }

   public void testImportOnePackageVersioned() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal();
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testImportOnePackageVersioned() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal();
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequirePackage("export1", new VersionRange("1.0.0", "2.0.0")));
   }

   public void testImportThreePackages() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal();
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testImportThreePackages() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal();
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequirePackage("export1", new VersionRange("1.0.0", "1.1.0")),
                                 factory.createRequirePackage("export2", new VersionRange("2.0.0", "2.1.0")),
                                 factory.createRequirePackage("export3", new VersionRange("3.0.0", "3.1.0")));
   }

   public void testImportVersionRange() throws Exception
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testImportThreePackages() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal();
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequirePackage("export1", new VersionRange("1.0.0", "1.1.0")),
                                 factory.createRequirePackage("export2", new VersionRange("2.0.0", "2.1.0")),
                                 factory.createRequirePackage("export3", new VersionRange("3.0.0", "3.1.0")));
   }

   public void testImportVersionRange() throws Exception
   {
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   {
      VFSClassLoaderFactory result = unmarshal();
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequirePackage("export1", new VersionRange("1.0.0", "1.1.0")),
                                 factory.createRequirePackage("export2", new VersionRange("2.0.0", "2.1.0")),
                                 factory.createRequirePackage("export3", new VersionRange("3.0.0", "3.1.0")));
   }

   public void testImportVersionRange() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal();
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

      assertCapabilities(result, factory.createModule("test2", "2.0.0"),
                                 factory.createPackage("test2", "2.0.0"),
                                 factory.createModule("test1", "1.0.0"),
                                 factory.createPackage("test1", "1.0.0"));
      assertRequirements(result, factory.createRequireModule("test2", new VersionRange("2.0.0")),
                                 factory.createRequirePackage("test2", new VersionRange("2.0.0")),
                                 factory.createRequireModule("test1", new VersionRange("1.0.0")),
                                 factory.createRequirePackage("test1", new VersionRange("1.0.0")));
   }

   public void testWildcardCapability() throws Exception
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

                                 factory.createModule("test1", "1.0.0"),
                                 factory.createPackage("test1", "1.0.0"));
      assertRequirements(result, factory.createRequireModule("test2", new VersionRange("2.0.0")),
                                 factory.createRequirePackage("test2", new VersionRange("2.0.0")),
                                 factory.createRequireModule("test1", new VersionRange("1.0.0")),
                                 factory.createRequirePackage("test1", new VersionRange("1.0.0")));
   }

   public void testWildcardCapability() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal(TestCapability.class);
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testImportOnePackageNoVersion() throws Exception
   {
      ClassLoadingMetaData result = unmarshal();
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequirePackage("export1"));
   }

   public void testImportOnePackageVersioned() throws Exception
   {
      ClassLoadingMetaData result = unmarshal();
View Full Code Here

Examples of org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory.createRequirePackage()

   public void testImportOnePackageVersioned() throws Exception
   {
      ClassLoadingMetaData result = unmarshal();
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequirePackage("export1", new VersionRange("1.0.0", "2.0.0")));
   }

   public void testImportThreePackages() throws Exception
   {
      ClassLoadingMetaData result = unmarshal();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.