Package org.jboss.deployers.spi.structure

Examples of org.jboss.deployers.spi.structure.ClassPathEntry


      Object child = null;
      if("path".equals(localName))
      {
         String name = attrs.getValue("name");
         String suffixes = attrs.getValue("suffixes");
         ClassPathEntry path = new ClassPathEntryImpl(relativePath + name, suffixes);
         parent.add(path);
      }
      return child;
   }
View Full Code Here


   protected static void assertDefaultClassPath(List<ClassPathEntry> classPath)
   {
      assertNotNull(classPath);
      assertEquals(1, classPath.size());
      ClassPathEntry entry = classPath.get(0);
      assertNotNull(entry);
      assertEquals("", entry.getPath());
      assertNull(entry.getSuffixes());
   }
View Full Code Here

   protected abstract Deployment createDeployment();
  
   public void testCreateClassPathEntryPath()
   {
      DeploymentFactory factory = createDeploymentFactory();
      ClassPathEntry entry = factory.createClassPathEntry("path");
      assertEquals("path", entry.getPath());
      assertNull(entry.getSuffixes());
   }
View Full Code Here

   }
  
   public void testCreateClassPathEntryPathAndSuffixes()
   {
      DeploymentFactory factory = createDeploymentFactory();
      ClassPathEntry entry = factory.createClassPathEntry("path", "suffixes");
      assertEquals("path", entry.getPath());
      assertEquals("suffixes", entry.getSuffixes());

      entry = factory.createClassPathEntry("path", null);
      assertEquals("path", entry.getPath());
      assertNull(entry.getSuffixes());
   }
View Full Code Here

  
   protected static void assertDefaultClassPath(List<ClassPathEntry> classPath)
   {
      assertNotNull(classPath);
      assertEquals(1, classPath.size());
      ClassPathEntry entry = classPath.get(0);
      assertNotNull(entry);
      assertEquals("", entry.getPath());
      assertNull(entry.getSuffixes());
   }
View Full Code Here

  
   protected abstract ClassPathEntry createDefault();
  
   public void testConstructorDefault()
   {
      ClassPathEntry entry = createDefault();
      assertEquals("", entry.getPath());
      assertNull(entry.getSuffixes());
   }
View Full Code Here

  
   protected abstract ClassPathEntry createPath(String path);
  
   public void testConstructorPath()
   {
      ClassPathEntry entry = createPath("path");
      assertEquals("path", entry.getPath());
      assertNull(entry.getSuffixes());
   }
View Full Code Here

  
   protected abstract ClassPathEntry createPathAndSuffixes(String path, String suffixes);

   public void testConstructorPathAndSuffixes()
   {
      ClassPathEntry entry = createPathAndSuffixes("path", "suffixes");
      assertEquals("path", entry.getPath());
      assertEquals("suffixes", entry.getSuffixes());

      entry = createPathAndSuffixes("path", null);
      assertEquals("path", entry.getPath());
      assertNull(entry.getSuffixes());
   }
View Full Code Here

      ContextInfo context = createPathAndClassPath("", null);
      assertDefaultPath(context);
      assertDefaultMetaDataPath(context);
      assertNull(context.getClassPath());

      ClassPathEntry entry1 = createClassPathEntry("path1");
      context.addClassPathEntry(entry1);
      assertDefaultPath(context);
      assertDefaultMetaDataPath(context);
      assertClassPath(context, entry1);

      ClassPathEntry entry2 = createClassPathEntry("path2");
      context.addClassPathEntry(entry2);
      assertDefaultPath(context);
      assertDefaultMetaDataPath(context);
      assertClassPath(context, entry1, entry2);
   }
View Full Code Here

      }
   }
  
   public void testEqualsAndHashCode()
   {
      ClassPathEntry one = createDefault();
      ClassPathEntry two = createDefault();
      assertEquals(one, two);
      assertEquals(two, one);
      assertEquals(one.hashCode(), two.hashCode());
     
      two = createPathAndSuffixes("", null);
      assertEquals(one, two);
      assertEquals(two, one);
      assertEquals(one.hashCode(), two.hashCode());
     
      one = createPathAndSuffixes("path", "suffixes");
      two = createPathAndSuffixes("path", "suffixes");
      assertEquals(one, two);
      assertEquals(two, one);
      assertEquals(one.hashCode(), two.hashCode());
     
      one = createPathAndSuffixes("path", "suffixes");
      two = createPathAndSuffixes("not-path", "suffixes");
      assertNotSame(one, two);
      assertNotSame(two, one);
      assertNotSame(one.hashCode(), two.hashCode());
     
      one = createPathAndSuffixes("path", "suffixes");
      two = createPathAndSuffixes("Path", "not-suffixes");
      assertNotSame(one, two);
      assertNotSame(two, one);
      assertNotSame(one.hashCode(), two.hashCode());
     
      one = createPathAndSuffixes("path", "suffixes");
      two = createPathAndSuffixes("Path", null);
      assertNotSame(one, two);
      assertNotSame(two, one);
      assertNotSame(one.hashCode(), two.hashCode());
   }
View Full Code Here

TOP

Related Classes of org.jboss.deployers.spi.structure.ClassPathEntry

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.