Package org.jboss.deployers.client.spi

Examples of org.jboss.deployers.client.spi.DeploymentFactory


      assertNull(entry.getSuffixes());
   }
  
   public void testCreateClassPathEntryPathAndSuffixesErrors()
   {
      DeploymentFactory factory = createDeploymentFactory();
      try
      {
         factory.createClassPathEntry(null, "suffixes");
         fail("Should not be here!");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
View Full Code Here


      }
   }
  
   public void testCreateClassPathPath()
   {
      DeploymentFactory factory = createDeploymentFactory();
      List<ClassPathEntry> expected = Collections.singletonList(factory.createClassPathEntry("path"));
      List<ClassPathEntry> classPath = factory.createClassPath("path");
      assertEquals(expected, classPath);
   }
View Full Code Here

      assertEquals(expected, classPath);
   }
  
   public void testCreateClassPathPathErrors()
   {
      DeploymentFactory factory = createDeploymentFactory();
      try
      {
         factory.createClassPath(null);
         fail("Should not be here!");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
View Full Code Here

      }
   }
  
   public void testCreateClassPathPathAndSuffixes()
   {
      DeploymentFactory factory = createDeploymentFactory();
      List<ClassPathEntry> expected = Collections.singletonList(factory.createClassPathEntry("path", "suffixes"));
      List<ClassPathEntry> classPath = factory.createClassPath("path", "suffixes");
      assertEquals(expected, classPath);
   }
View Full Code Here

      assertEquals(expected, classPath);
   }
  
   public void testCreateClassPathPathAndSuffixesErrors()
   {
      DeploymentFactory factory = createDeploymentFactory();
      try
      {
         factory.createClassPath(null, "suffixes");
         fail("Should not be here!");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
View Full Code Here

      }
   }

   public void testAddContextPath()
   {
      DeploymentFactory factory = createDeploymentFactory();
      Deployment deployment = createDeployment();
      ContextInfo context = factory.addContext(deployment, "path");
      assertEquals("path", context.getPath());
      assertDefaultNonPath(context);
     
      assertContexts(deployment, context);
   }
View Full Code Here

      assertContexts(deployment, context);
   }
  
   public void testAddContextPathErrors()
   {
      DeploymentFactory factory = createDeploymentFactory();
      Deployment deployment = createDeployment();
      try
      {
         factory.addContext(null, "path");
         fail("Should not be here");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
      }
      try
      {
         factory.addContext(deployment, null);
         fail("Should not be here");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
View Full Code Here

      }
   }

   public void testAddContextPathAndClassPath()
   {
      DeploymentFactory factory = createDeploymentFactory();
      Deployment deployment = createDeployment();
      List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
      ContextInfo context = factory.addContext(deployment, "path", classPath);
      assertEquals("path", context.getPath());
      assertDefaultMetaDataPath(context);
      assertEquals(classPath, context.getClassPath());

      assertContexts(deployment, context);
     
      deployment = createDeployment();
      classPath = null;
      context = factory.addContext(deployment, "path", classPath);
      assertEquals("path", context.getPath());
      assertDefaultMetaDataPath(context);
      assertNull(context.getClassPath());

      assertContexts(deployment, context);
View Full Code Here

      assertContexts(deployment, context);
   }
  
   public void testAddContextPathAndClassPathErrors()
   {
      DeploymentFactory factory = createDeploymentFactory();
      Deployment deployment = createDeployment();
      List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
      try
      {
         factory.addContext(null, "path", classPath);
         fail("Should not be here");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
      }
      try
      {
         factory.addContext(deployment, null, classPath);
         fail("Should not be here");
      }
      catch (Exception e)
      {
         checkThrowable(IllegalArgumentException.class, e);
View Full Code Here

      }
   }

   public void testAddContextPathAndMetaDataAndClassPath()
   {
      DeploymentFactory factory = createDeploymentFactory();
      Deployment deployment = createDeployment();
      List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
      ContextInfo context = factory.addContext(deployment, "path", "metaDataPath", classPath);
      assertEquals("path", context.getPath());
      assertDefaultMetaDataPath(context.getMetaDataPath());
      assertEquals(classPath, context.getClassPath());

      assertContexts(deployment, context);

      classPath = null;
      deployment = createDeployment();
      context = factory.addContext(deployment, "path", "metaDataPath", classPath);
      assertEquals("path", context.getPath());
      assertDefaultMetaDataPath(context.getMetaDataPath());
      assertNull(context.getClassPath());

      assertContexts(deployment, context);
View Full Code Here

TOP

Related Classes of org.jboss.deployers.client.spi.DeploymentFactory

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.