Package org.jboss.classloading.spi.version

Examples of org.jboss.classloading.spi.version.VersionRange


   public void testOptionalRequirement() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal(TestRequirement.class);
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequireModule("test1", new VersionRange("1.0.0"), true, false, false),
                                 factory.createRequirePackage("test1", new VersionRange("1.0.0"), true, false, false));
   }
View Full Code Here


   public void testReExportRequirement() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal(TestRequirement.class);
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createReExportModule("test1", new VersionRange("1.0.0")),
                                 factory.createReExportPackage("test1", new VersionRange("1.0.0")));
   }
View Full Code Here

   public void testDynamicRequirement() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal(TestRequirement.class);
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createRequireModule("test1", new VersionRange("1.0.0"), false, false, true),
                                 factory.createRequirePackage("test1", new VersionRange("1.0.0"), false, false, true));
   }
View Full Code Here

   public void testUsesRequirement() throws Exception
   {
      VFSClassLoaderFactory result = unmarshal(TestRequirement.class);
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      assertRequirements(result, factory.createUsesPackage("test1", new VersionRange("1.0.0")));
   }
View Full Code Here

   }
  
   public void testCreateRequireModuleVersioned() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createRequireModule("test", range);
      assertEquals(new ModuleRequirement("test", range), test);
   }
View Full Code Here

   }
  
   public void testCreateRequireModuleVersionedOptionalReExportDynamic() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createRequireModule("test", range, true, true, true);
      ModuleRequirement expected = new ModuleRequirement("test", range);
      expected.setOptional(true);
      expected.setReExport(true);
      expected.setDynamic(true);
View Full Code Here

   }
  
   public void testCreateReExportModuleVersioned() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createReExportModule("test", range);
      ModuleRequirement expected = new ModuleRequirement("test", range);
      expected.setReExport(true);
      assertEquals(expected, test);
   }
View Full Code Here

   }
  
   public void testCreateReExportModuleVersionedOptional() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createReExportModule("test", range, true);
      ModuleRequirement expected = new ModuleRequirement("test", range);
      expected.setOptional(true);
      expected.setReExport(true);
      assertEquals(expected, test);
View Full Code Here

   }
  
   public void testCreateRequirePackageVersioned() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createRequirePackage("test", range);
      assertEquals(new PackageRequirement("test", range), test);
   }
View Full Code Here

   }
  
   public void testCreateRequirePackageVersionedOptionalReExportDynamic() throws Exception
   {
      ClassLoadingMetaDataFactory factory = ClassLoadingMetaDataFactory.getInstance();
      VersionRange range = new VersionRange("1.0.0", "2.0.0");
      Requirement test = factory.createRequirePackage("test", range, true, true, true);
      PackageRequirement expected = new PackageRequirement("test", range);
      expected.setOptional(true);
      expected.setReExport(true);
      expected.setDynamic(true);
View Full Code Here

TOP

Related Classes of org.jboss.classloading.spi.version.VersionRange

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.