Package org.springframework.batch.item

Examples of org.springframework.batch.item.ItemProcessor.process()


    ItemProcessor itemProcessor = context.getBean(ItemProcessor.class);

    assertNotNull(itemProcessor);
    StepSynchronizationManager.register(new StepExecution("step1", new JobExecution(5l)));
    assertEquals("Test", itemProcessor.process("Test"));
    StepSynchronizationManager.close();

    context.close();
  }
View Full Code Here


    ItemProcessor itemProcessor = (ItemProcessor) context.getBean("itemProcessor");

    assertNotNull(itemProcessor);
    StepSynchronizationManager.register(new StepExecution("step1", new JobExecution(5l)));
    assertEquals("Test", itemProcessor.process("Test"));
    StepSynchronizationManager.close();

    context.close();
  }
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.