Examples of execute()


Examples of org.soybeanMilk.core.DefaultExecutor.execute()

   
    os.set("helloTo", "mars");
    os.set("helloRepeat", 3);
   
    printDiv();
    executor.execute("helloActionXml", os);
   
    printDiv();
    executor.execute("helloActionStatement", os);
   
    printDiv();
View Full Code Here

Examples of org.soybeanMilk.core.Executor.execute()

   
    os.set("helloTo", "mars");
    os.set("helloRepeat", 3);
   
    printDiv();
    executor.execute("helloActionXml", os);
   
    printDiv();
    executor.execute("helloActionStatement", os);
   
    printDiv();
View Full Code Here

Examples of org.soybeanMilk.core.exe.Invoke.execute()

   
    ObjectSource os=new HashMapObjectSource(new DefaultGenericConverter());
    os.set("arg0", "arg0");
    os.set("arg1", "1111");
   
    invoke.execute(os);
   
    Assert.assertEquals(TestResolver.RESULT, os.get(RESULT_KEY));
  }
 
  @Test
View Full Code Here

Examples of org.spout.vanilla.util.explosion.ExplosionModel.execute()

  @Override
  public void onTick(float dt) {
    pulse(dt);
    if (getFuse() <= 0) {
      ExplosionModel explosion = new ExplosionModelSpherical();
      explosion.execute(holder.getPhysics().getPosition(), getExplosionSize(), makesFire(), VanillaMaterials.TNT.toCause(holder.getPhysics().getPosition()));
      holder.remove();
    }
  }
}
View Full Code Here

Examples of org.spout.vanilla.util.explosion.ExplosionModelSpherical.execute()

  @Override
  public void onTick(float dt) {
    pulse(dt);
    if (getFuse() <= 0) {
      ExplosionModel explosion = new ExplosionModelSpherical();
      explosion.execute(holder.getPhysics().getPosition(), getExplosionSize(), makesFire(), VanillaMaterials.TNT.toCause(holder.getPhysics().getPosition()));
      holder.remove();
    }
  }
}
View Full Code Here

Examples of org.springframework.amqp.rabbit.core.RabbitTemplate.execute()

    assertEquals("message", result);

    // The channel is not transactional
    exception.expect(AmqpIOException.class);

    template2.execute(new ChannelCallback<Void>() {
      @Override
      public Void doInRabbit(Channel channel) throws Exception {
        // Should be an exception because the channel is not transactional
        channel.txRollback();
        return null;
View Full Code Here

Examples of org.springframework.batch.core.Job.execute()

    @Test
    public void testExecute() {
        Job job = new TestDummyJob("testExecute");
        String jobName = job.getName();
        job.execute(TestDummyJobRepository.createJobExecutionInstance(jobName));

        Operation op = assertOperationDetails(getLastEntered(), "execute", jobName);
        assertOperationPath(op, jobName, null);
    }
View Full Code Here

Examples of org.springframework.batch.core.Step.execute()

    try {
      if(log.isDebugEnabled()) {
        log.debug("Executing step: " + step + " / " + stepExecution);
      }
      step.execute(stepExecution);
    } catch (JobInterruptedException e) {
      log.error("error executing step 1", e);
      stepExecution.setStatus(BatchStatus.STOPPED);
    } catch (Throwable e) {
      log.error("error executing step 2", e);
View Full Code Here

Examples of org.springframework.batch.core.step.AbstractStep.execute()

    AbstractStep step = (AbstractStep) factory.getObject();
    step.setName("mytest");
    StepExecution stepExecution = new StepExecution(step.getName(),
        jobExecution);
    repository.add(stepExecution);
    step.execute(stepExecution);

    assertEquals(2, recovered.size());
    assertEquals(2, stepExecution.getSkipCount());
    assertEquals(2, stepExecution.getWriteSkipCount());
View Full Code Here

Examples of org.springframework.batch.core.step.tasklet.Tasklet.execute()

        StepContext stepContext = Mockito.mock(StepContext.class);
        Mockito.when(stepContext.getStepExecution()).thenReturn(stepExecution);

        ChunkContext chunkContext = Mockito.mock(ChunkContext.class);
        Mockito.when(chunkContext.getStepContext()).thenReturn(stepContext);
        tasklet.execute(contribution, chunkContext);

        Operation op = assertOperationDetails(getFirstEntered(), "execute", stepExecution.getStepName());
        assertOperationPath(op, stepExecution);
    }
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.