Examples of execute()


Examples of org.springframework.webflow.execution.AnnotatedAction.execute()

        assertEquals("value", context.getAttributes().getString("attr"));
        assertEquals("value", context.getAttributes().getString("attr2"));
        return success();
      }
    });
    assertEquals("success", action2.execute(context).getId());
    assertEquals(0, context.getAttributes().size());
  }

  public void testExecuteWithName() throws Exception {
    action.getAttributes().put("name", "foo");
View Full Code Here

Examples of org.springframework.yarn.boot.SpringApplicationTemplate.execute()

    SpringYarnBootUtils.addSources(builder, sources.toArray(new Object[0]));
    SpringYarnBootUtils.addProfiles(builder, profiles.toArray(new String[0]));
    SpringYarnBootUtils.addApplicationListener(builder, appProperties);

    SpringApplicationTemplate template = new SpringApplicationTemplate(builder);
    return template.execute(new SpringApplicationCallback<String>() {

      @Override
      public String runWithSpringApplication(ApplicationContext context) throws Exception {
        OperationProperties operationProperties = context.getBean(OperationProperties.class);
        YarnClient client = context.getBean(YarnClient.class);
View Full Code Here

Examples of org.springmodules.jcr.JcrTemplate.execute()

    try {
      tt.execute(new TransactionCallbackWithoutResult() {
        protected void doInTransactionWithoutResult(TransactionStatus status) {
          assertTrue("Has thread session", TransactionSynchronizationManager.hasResource(sf));
          JcrTemplate template = new JcrTemplate(sf);
          template.execute(new JcrCallback() {
            public Object doInJcr(Session se) throws RepositoryException {
              se.save();
              throw new RuntimeException();
            }
View Full Code Here

Examples of org.springmodules.prevayler.system.PrevalentSystem.execute()

    }
   
    public Object execute(SystemCallback callback) {
        logger.debug("Executing callback into prevalent system.");
        PrevalentSystem localSystem = (PrevalentSystem) this.configuration.getPrevaylerInstance().prevalentSystem();
        return localSystem.execute(callback);
    }
   
    public void flush(Prevayler prevayler) {
        // Do nothing: all operations are suddenly committed.
    }
View Full Code Here

Examples of org.springmodules.workflow.jbpm30.JbpmTemplate.execute()

    TransactionTemplate transactionTemplate = new TransactionTemplate(this.transactionManager);
    transactionTemplate.execute(new TransactionCallback() {
      public Object doInTransaction(TransactionStatus status) {
        JbpmTemplate jbpmTemplate = new JbpmTemplate(jbpmSessionFactory, processDefinition);

        jbpmTemplate.execute(new JbpmCallback() {
          public Object doInJbpm(JbpmSession session) {
            session.getGraphSession().saveProcessDefinition(processDefinition);
            return null;
          }
        });
View Full Code Here

Examples of org.springside.modules.nosql.redis.JedisTemplate.execute()

    /**
     * Query master address from sentinel.
     */
    private HostAndPort queryMasterAddress() {
      JedisTemplate sentinelTemplate = new JedisTemplate(sentinelPool);
      List<String> address = sentinelTemplate.execute(new JedisAction<List<String>>() {
        @Override
        public List<String> action(Jedis jedis) {
          return jedis.sentinelGetMasterAddrByName(masterName);
        }
      });
View Full Code Here

Examples of org.sqlite.ExtendedCommand.SQLExtension.execute()

        int changes = 0;
        SQLExtension ext = ExtendedCommand.parse(sql);
        if (ext != null) {
            // execute extended command
            ext.execute(db);
        }
        else {
            try {
                changes = db.total_changes();
View Full Code Here

Examples of org.squirrelframework.foundation.component.Heartbeat.execute()

        });
        callSequence.verify(methodCalls, Mockito.times(0)).method1();
        callSequence.verify(methodCalls, Mockito.times(0)).method2();
        callSequence.verify(methodCalls, Mockito.times(0)).method3();
        callSequence.verify(methodCalls, Mockito.times(0)).method4();
        hb.execute();
        callSequence.verify(methodCalls, Mockito.times(0)).method1();
        callSequence.verify(methodCalls, Mockito.times(1)).method2();
        callSequence.verify(methodCalls, Mockito.times(0)).method3();
        callSequence.verify(methodCalls, Mockito.times(1)).method4();
        hb.execute();
View Full Code Here

Examples of org.strecks.action.BasicAction.execute()

    ActionForward actionForward = new ActionForward();

    BasicAction actionBean = createMock(BasicAction.class);
    ActionMapping mapping = createMock(ActionMapping.class);

    expect(actionBean.execute()).andReturn("success");
    expect(mapping.findForward("success")).andReturn(actionForward);

    replay(actionBean);
    replay(mapping);
View Full Code Here

Examples of org.strecks.action.BasicFormAction.execute()

    DelegatingForm form = createStrictMock(DelegatingForm.class);

    expect(request.getAttribute(Globals.ERROR_KEY)).andReturn(null);
    actionBean.setInputError(false);
    form.setBindOutwards(true);
    expect(actionBean.execute()).andReturn("success");
    expect(mapping.findForward("success")).andReturn(actionForward);
    expect(form.getBindOutwards()).andReturn(true);
    form.bindOutwards(actionBean);

    replay(actionBean);
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.