Package org.jboss.test.virtual.support.ps

Examples of org.jboss.test.virtual.support.ps.MockProfileServiceRepository


      // Remove any existing content
      for(File f : deployDir.listFiles())
         f.delete();

      URI[] appURIs = {deployDir.toURI()};
      MockProfileServiceRepository repository = new MockProfileServiceRepository(root, appURIs);
      HDScanner scanner = new HDScanner();
      scanner.setProfileService(repository);
      scanner.setScanPeriod(1000);

      VFS vfs = VFS.getVFS(root.toURI());
      File archive = generateArchive(deployDir);
      VirtualFile archiveVF = vfs.getChild("deploy/"+archive.getName());     
      VFSDeployment vfsd = VFSDeploymentFactory.getInstance().createVFSDeployment(archiveVF);
      repository.addDeployment(archiveVF.toURI().toString(), vfsd, DeploymentPhase.APPLICATION);

      getLog().debug("Waiting for 10 scans...");
      scanner.start();
      while(scanner.getScanCount() < 10)
      {
View Full Code Here

TOP

Related Classes of org.jboss.test.virtual.support.ps.MockProfileServiceRepository

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.