Examples of visit()


Examples of org.internna.iwebmvc.core.validation.ValidationVisitor.visit()

    @Test
    public void acceptField() throws Exception {
        Locale locale = entityManager.find(Locale.class, pk);
        ValidationVisitor visitor = new ValidationVisitor();
        Collection<ValidationError> errors = visitor.visit(locale);
        assertTrue("No errors for valid entities", errors.size() == 0);
        errors = visitor.visit(new Locale());
        assertTrue("Errors if missing properties", errors.size() == 2);
    }
View Full Code Here

Examples of org.jacoco.core.data.IClassStructureVisitor.visit()

  @Test
  public void testGetBundle() {
    final IClassStructureVisitor classStructure1 = coverageBuilder
        .visitClassStructure(1);
    classStructure1.visit("org/jacoco/examples/Sample1", null,
        "java/lang/Object", new String[0]);
    final IMethodStructureVisitor methodStructure1 = classStructure1
        .visitMethodStructure("doit", "()V", null);
    methodStructure1.block(0, 3, new int[] { 3, 4, 5 });
    methodStructure1.visitEnd();
View Full Code Here

Examples of org.jboss.as.pojo.descriptor.BeanMetaDataConfig.visit()

                final ServiceName name = BeanMetaDataConfig.toBeanName(beanConfig.getName(), next);
                final ServiceTarget serviceTarget = context.getChildTarget();
                final ServiceBuilder serviceBuilder = serviceTarget.addService(name, nextPhase);
                registerAliases(serviceBuilder, next);
                final ConfigVisitor visitor = new DefaultConfigVisitor(serviceBuilder, state, getModule(), getIndex(), getBeanInfo());
                beanConfig.visit(visitor);
                nextPhase.setModule(getModule());
                nextPhase.setBeanConfig(getBeanConfig());
                nextPhase.setIndex(getIndex());
                nextPhase.setBeanInfo(getBeanInfo());
                nextPhase.setBean(getBean());
View Full Code Here

Examples of org.jboss.beans.metadata.spi.MetaDataVisitorNode.visit()

            while (children.hasNext())
            {
               MetaDataVisitorNode child = (MetaDataVisitorNode) children.next();
               try
               {
                  child.visit(this);
               }
               finally
               {
                  contextState = restoreState;
               }
View Full Code Here

Examples of org.jboss.classloading.spi.dependency.Module.visit()

               for (VirtualFile file : cpFiles)
               {
                  urls[i++] = file.toURL();
               }
               WBDiscoveryVisitor visitor = new WBDiscoveryVisitor(environment);
               module.visit(visitor, ClassFilter.INSTANCE, null, urls);
            }
            if (hasWB)
            {
               for (VirtualFile file : wbFiles)
                  environment.addWeldXmlURL(file.toURL());
View Full Code Here

Examples of org.jboss.classloading.spi.dependency.policy.mock.MockClassLoaderPolicyModule.visit()

         module.registerClassLoaderPolicy(system);

         if (recurseFilter != null)
         {
            if (filter != null)
               module.visit(visitor, filter, recurseFilter);
            else
               module.visit(visitor, visitor.getFilter(), recurseFilter);
         }
         else if (filter != null)
         {
View Full Code Here

Examples of org.jboss.system.metadata.ServiceMetaDataVisitorNode.visit()

            while (children.hasNext())
            {
               ServiceMetaDataVisitorNode child = children.next();
               try
               {
                  child.visit(this);
               }
               finally
               {
                  contextState = restoreState;
               }
View Full Code Here

Examples of org.jboss.vfs.VirtualFile.visit()

      if (context == null)
         throw new IllegalArgumentException("Null context");

      VirtualFile file = context.getFile();
      VirtualFileVisitor visitor = candidateStructureVisitorFactory.createVisitor(context, attributes);
      file.visit(visitor);
   }

   /**
    * Add all children as candidates
    *
 
View Full Code Here

Examples of org.jboss.virtual.VFS.visit()

   }
  
   protected void testVisit(MockVFSContext context, MockVirtualFileVisitor visitor, HashSet<String> expected) throws Exception
   {
      VFS vfs = context.getVFS();
      vfs.visit(visitor);
     
      HashSet<String> actual = new HashSet<String>();
      for (VirtualFile file : visitor.getVisited())
         actual.add(file.getPathName());
      assertEquals(expected, actual);
View Full Code Here

Examples of org.jboss.virtual.VirtualFile.visit()

      if (modified == false && root != deploymentContext.getRoot())
      {
         // check for update or delete
         UpdateDeleteVisitor udVisitor = new UpdateDeleteVisitor(tempAttributes, getCache(), synchAdapter, root);
         VirtualFile tempRoot = deploymentContext.getRoot();
         tempRoot.visit(udVisitor);
         // check for addition
         AddVisitor addVisitor = new AddVisitor(originalAttributes, getCache(), synchAdapter, tempRoot, root.getPathName().length());
         root.visit(addVisitor);
      }
      return modified;
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.