Package org.jboss.deployers.client.spi

Examples of org.jboss.deployers.client.spi.DeploymentFactory.createClassPath()


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


   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);
   }
  
   public void testCreateClassPathPathAndSuffixesErrors()
   {
View Full Code Here

   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 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());
View Full Code Here

  
   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");
      }
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());
View Full Code Here

  
   public void testAddContextPathAndMetaDataPathAndAndClassPathErrors()
   {
      DeploymentFactory factory = createDeploymentFactory();
      Deployment deployment = createDeployment();
      List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
      try
      {
         factory.addContext(null, "path", "metaData", classPath);
         fail("Should not be here");
      }
View Full Code Here

   public void testSerialization() throws Exception
   {
      DeploymentFactory factory = createDeploymentFactory();
      Deployment deployment = createDeployment();

      List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
      ContextInfo context1 = factory.addContext(deployment, "path1", "metaDataPath", classPath);
      assertEquals("path1", context1.getPath());
      assertDefaultMetaDataPath(context1.getMetaDataPath());
      assertEquals(classPath, context1.getClassPath());
     
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.