Package org.jboss.test.ejb3.vfs.impl.vfs3

Examples of org.jboss.test.ejb3.vfs.impl.vfs3.UnifiedVirtualFileFactoryImplUnitTest


      VisitorAttributes va = new VisitorAttributes();
      va.setLeavesOnly(true);
      SuffixesExcludeFilter noJars = new SuffixesExcludeFilter(Arrays.asList(".zip", ".ear", ".jar", ".rar", ".war", ".sar",".har", ".aop")); // TODO:  Where should these come from?
      va.setRecurseFilter(noJars);
      FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(new VirtualFileFilterAdapter(filter), va);

      for(VirtualFile root : classPath)
      {
         try
         {
View Full Code Here


   }

   public void testFilterAdapter() throws Exception
   {
      final VirtualFileFilter filter = getFilter();
      final VirtualFileFilterAdapter filterAdapter = new VirtualFileFilterAdapter(filter);
      final VirtualFile virtuFile = getRoot();
      final FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(filterAdapter, VisitorAttributes.RECURSE_LEAVES_ONLY);
      virtuFile.visit(visitor);
     
      final List<VirtualFile> matched = visitor.getMatched();
View Full Code Here

      return unit.removeAttachment(name);
   }

   public org.jboss.ejb3.vfs.spi.VirtualFile getRootFile()
   {
      return new VirtualFileWrapper(unit.getFile(""));
   }
View Full Code Here

      return extractDescriptorUrl("jboss.xml");
   }

   public org.jboss.ejb3.vfs.spi.VirtualFile getMetaDataFile(String name)
   {
      return new VirtualFileWrapper(unit.getMetaDataFile(name));
   }
View Full Code Here

      }
      final List<VirtualFile> matches = visitor.getMatched();
      final List<org.jboss.ejb3.vfs.spi.VirtualFile> wrappedMatches = new ArrayList<org.jboss.ejb3.vfs.spi.VirtualFile>(matches.size());
      for(VirtualFile match : matches)
      {
         wrappedMatches.add(new VirtualFileWrapper(match));
      }
      return wrappedMatches;
   }
View Full Code Here

   }

   public VirtualFile getRootFile()
   {
      if (unit instanceof VFSDeploymentUnit)
         return new VirtualFileWrapper(((VFSDeploymentUnit)unit).getRoot());
      else
         return null;
   }
View Full Code Here

    * Test to verify the {@link UnifiedVirtualFileFactory} correctly builds {@link UnifiedVirtualFile}
    * instances from a {@link VirtualFile} instance;
    */
   public void testCreate() throws Exception
   {
      final VirtualFile virtualFile = new VirtualFileWrapper(null);
      final UnifiedVirtualFile unifiedVirtualFile = UnifiedVirtualFileFactory.getInstance().create(virtualFile);
      assertNotNull(unifiedVirtualFile);
      assertTrue(unifiedVirtualFile instanceof VirtualFileAdaptor);
   }
View Full Code Here

   }

   public void testRemoteAsyncInvocation()
      throws Exception
   {
      final AsyncTesterCommonBusiness bean = this.getTesterBean();
       Assert.assertTrue("Remote invocation not executed in new Thread",bean.isRemoteAsyncInvocationExecutedInNewThread());
   }
View Full Code Here

   }

   public void testLocalAsyncInvocation()
      throws Exception
   {
      final AsyncTesterCommonBusiness bean = this.getTesterBean();
      Assert.assertTrue("Local invocation not executed in new Thread",bean.isLocalAsyncInvocationExecutedInNewThread());
   }
View Full Code Here

   }

   public void testNointerfaceAsyncInvocation()
      throws Exception
   {
      final AsyncTesterCommonBusiness bean = this.getTesterBean();
      Assert.assertTrue("Nointerface invocation not executed in new Thread",bean.isNointerfaceAsyncInvocationExecutedInNewThread());
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.ejb3.vfs.impl.vfs3.UnifiedVirtualFileFactoryImplUnitTest

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.