Examples of perform()


Examples of org.sonatype.nexus.proxy.maven.metadata.operations.NexusMergeOperation.perform()

    Metadata md1 = getSource(false);

    Metadata md2 = getTarget(false);

    NexusMergeOperation mergeOp = new NexusMergeOperation(new MetadataOperand(md1));
    mergeOp.perform(md2);

    validate(md2, false, false);
  }

  @Test
View Full Code Here

Examples of org.springframework.ide.eclipse.beans.ui.refactoring.model.BeansJavaConfigTypeChange.perform()

    RenameTypeArguments arguments = new RenameTypeArguments("NewClassName", true, false, null);
    RenameResourceProcessor processor = new RenameResourceProcessor(configClass.getResource());
    participant.initialize(processor, configClass, arguments);
    BeansJavaConfigTypeChange change = (BeansJavaConfigTypeChange) participant.createChange(new NullProgressMonitor());
    change.setBeansModel(model);
    change.perform(new NullProgressMonitor());
   
    assertNull(beansProject.getConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.SimpleConfigurationClass"));
    IBeansConfig newConfig = beansProject.getConfig(BeansConfigFactory.JAVA_CONFIG_TYPE + "org.test.spring.NewClassName");
    assertNotNull(newConfig);
  }
View Full Code Here

Examples of org.springframework.test.web.server.MockMvc.perform()

    MockMvc mockMvc =
      standaloneSetup(new PersonController())
        .setViewResolvers(cnViewResolver, new InternalResourceViewResolver())
        .build();

    mockMvc.perform(get("/person/Corea"))
      .andExpect(status().isOk())
      .andExpect(model().size(1))
      .andExpect(model().attributeExists("person"))
      .andExpect(forwardedUrl("person/show"));
View Full Code Here

Examples of org.springframework.test.web.servlet.MockMvc.perform()

    context.register(ResourceServerContext.class);
    context.refresh();
    MockMvc mvc = MockMvcBuilders.webAppContextSetup(context)
        .addFilters(new DelegatingFilterProxy(context.getBean("springSecurityFilterChain", Filter.class)))
        .build();
    mvc.perform(MockMvcRequestBuilders.get("/")).andExpect(MockMvcResultMatchers.status().isUnauthorized());
    context.close();
  }

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

Examples of org.springsource.ide.eclipse.gradle.core.wizards.GradleImportOperation.perform()

        GradleImportOperation importOp = GradleImportOperation.importAll(rootFolder);
        importOp.setEnableDependencyManagement(false);
        importOp.setEnableDSLD(false);

        ErrorHandler eh = ErrorHandler.forImportWizard();
        importOp.perform(eh, new SubProgressMonitor(monitor, 1));

        //3: add spring nature
        addPringNature(importOp.getProjects(), eh, new SubProgressMonitor(monitor, 1));

        eh.rethrowAsCore();
View Full Code Here

Examples of org.w3c.jigsaw.http.httpd.perform()

           "<p>The resource <b>"+getIdentifier()+"</b>"+
           "has an invalid target attribute : <p><b>"+
           getTarget()+"</b></body></html>");     
      throw new HTTPException (error);
  }
  return server.perform(request);
    }

    protected  boolean lookupResource(LookupState ls, LookupResult lr)
  throws ProtocolException
    {
View Full Code Here

Examples of org.w3c.tools.resources.FramedResource.perform()

      FramedResource wrapper =
          (FramedResource)r_wrapper.lock();
      Request req = (Request)request.getClone();
      req.setState(JigsawHttpServletResponse.INCLUDED,
             Boolean.TRUE);
      return (Reply) wrapper.perform(req);
        } catch (ProtocolException ex) {
      ex.printStackTrace();
      // return default reply
        } catch (ResourceException ex2) {
      ex2.printStackTrace();
View Full Code Here

Examples of org.w3c.www.protocol.http.cache.CachedResource.perform()

  if (precache.containsKey(requrl)) {
      if (debug)
    System.out.println("*** Already downloading: "+ requrl);
      try {
    CachedResource cr = (CachedResource)precache.get(requrl);
    return cr.perform(request);
      } catch (Exception ex) {
    // there was a problem with the previous request,
    // it may be better to do it by ourself
      }
  }
View Full Code Here

Examples of org.w3c.www.protocol.http.cache.EntityCachedResource.perform()

      if(PushCacheManager.instance().isPushResource(res)) {
    EntityCachedResource ecr=(EntityCachedResource)
        res.lookupResource(request);
         
    if(ecr!=null) {
        Reply reply = ecr.perform(request);
        return reply;
    }
      }
  }
  catch(Exception e) {
View Full Code Here

Examples of pivot.wtk.Action.perform()

            Keyboard.getModifiers());

        Action action = window.getActions().get(keyStroke);
        if (action != null
            && action.isEnabled()) {
            action.perform();
        }

        return consumed;
    }
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.