Examples of addResource()


Examples of org.jboss.gravia.resolver.Environment.addResource()

        List<Resource> unresolved = new ArrayList<Resource>();
        Environment envclone = env.cloneEnvironment();
        for (Requirement req : reqs) {
            Resource res = req.getResource();
            if (env.getResource(res.getIdentity()) == null) {
                envclone.addResource(res);
                unresolved.add(res);
            }
        }

        // Find the resources in the cloned environment
View Full Code Here

Examples of org.jboss.jbossts.qa.astests.recovery.TestASRecovery.addResource()

            System.out.println("BMT method called with tx status: " + txStatus);
       
        System.out.println("BMT testXA called with " + specs.length + " specs");

        for (ASFailureSpec spec : specs)
            xatest.addResource(spec);

        return xatest.startTest() ? "Passed" : "Failed";
    }

    public String getStatus(UserTransaction tx)
View Full Code Here

Examples of org.jboss.profileservice.spi.repository.MutableRepository.addResource()

/*     */
/*     */   public void addManagedObject(String vfsPath, Attachments edits) throws Exception
/*     */   {
/*  97 */     MutableRepository repo = getRepository(this.adminEditsRoot.toURI());
/*  98 */     AttachmentsResource attachments = new AttachmentsResource(vfsPath, edits, repo);
/*  99 */     repo.addResource(attachments);
/*     */   }
/*     */
/*     */   public void create() throws Exception
/*     */   {
/* 104 */     File profileRoot = new File(this.root, this.key.getName());
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addResource()

        JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "sar-example.sar");
        archive.addPackage(ConfigService.class.getPackage());
        archive.addClass(JBossASEmbeddedInContainerTestCase.class);
        String path = "META-INF/jboss-service.xml";
        URL resourceURL = JBossASEmbeddedInContainerTestCase.class.getResource("/sar-example.sar/" + path);
        archive.addResource(new File(resourceURL.getFile()), path);
        return archive;
    }

    @Test
    public void testDeployedService() throws Exception {
View Full Code Here

Examples of org.jboss.shrinkwrap.api.spec.WebArchive.addResource()

   }

   protected WebArchive createWebArchive(String name)
   {
      WebArchive webArchive = ShrinkWrap.create(WebArchive.class, "test-weld.war");
      webArchive
         .addResource("org/jboss/test/deployers/as/support/webapp/" + name + ".xhtml", "/" + name + ".xhtml")
         .addResource("org/jboss/test/deployers/as/support/webapp/WEB-INF/web.xml", WEB_XML)
         .addResource("org/jboss/test/deployers/as/support/webapp/WEB-INF/faces-config.xml", FACES_CONFIG);
     
     
View Full Code Here

Examples of org.jboss.test.classloading.support.SimpleClassLoader.addResource()

  
   public void testResourceCache() throws Exception
   {
      AbstractClassLoadingDomain domain = new AbstractClassLoadingDomain();
      SimpleClassLoader scl = new SimpleClassLoader();
      scl.addResource("xyzzy/Hello", new URL("file:///"));
      domain.addDomainClassLoader(new DelegatingDomainClassLoader(scl));
     
      URL url = domain.loadResource("xyzzy/Hello", null);
      assertNotNull(url);
     
View Full Code Here

Examples of org.jboss.test.faces.ApplicationServer.addResource()

    @Before
    public void setUp() throws Exception {
        facesEnvironment = new CustomizedHtmlUnitEnvironment();

        ApplicationServer facesServer = facesEnvironment.getServer();
        facesServer.addResource("/resources/" + SIMULATION_SCRIPT_NAME, "org/ajax4jsf/component/" + SIMULATION_SCRIPT_NAME);
        facesServer.addResource("/resources/" + QUEUEAJAX_SCRIPT_NAME, "org/ajax4jsf/component/" + QUEUEAJAX_SCRIPT_NAME);
        facesServer.addResource("/test.xhtml", "org/ajax4jsf/component/test.xhtml");

        facesEnvironment.start();
    }
View Full Code Here

Examples of org.jboss.test.jbossts.recovery.TestASRecovery.addResource()

         log.info("BMT method called with tx status: " + txStatus);

      log.info("BMT testXA called with " + specs.length + " specs");

      for (ASFailureSpec spec : specs)
         xatest.addResource(spec);

      return xatest.startTest() ? "Passed" : "Failed";
   }

   public String testXA(String testEntityPK, boolean reverseOrder, ASFailureSpec... specs)
View Full Code Here

Examples of org.jboss.test.jbossts.recovery.TestASRecoveryWithJPA.addResource()

      xatest.setTestEntityPK(testEntityPK);
      xatest.setReverseOrder(reverseOrder);
     
      for (ASFailureSpec spec : specs)
         xatest.addResource(spec);

      return xatest.startTest() ? "Passed" : "Failed";
   }
  
   protected String getStatus(UserTransaction tx)
View Full Code Here

Examples of org.jboss.test.jbossts.recovery.TestASRecoveryWithJTSPropagation.addResource()

         xatest.setRemoteCorbaPort(remoteCorbaPort);
         xatest.setUseEJB3(false);
         xatest.setUseOTS(useOTS);     

         for (ASFailureSpec spec : fSpecsNode)
            xatest.addResource(spec);

         return xatest.startTest(tx) ? "Passed" : "Failed";
      }
   }
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.