Package org.springframework.batch.core.step.item

Examples of org.springframework.batch.core.step.item.ChunkProcessor


  public void testRemoteChunkingSlaveParserWithProcessorDefined() {
    ApplicationContext applicationContext =
        new ClassPathXmlApplicationContext("/org/springframework/batch/integration/config/xml/RemoteChunkingSlaveParserTests.xml");

    ChunkHandler chunkHandler = applicationContext.getBean(ChunkProcessorChunkHandler.class);
    ChunkProcessor chunkProcessor = (SimpleChunkProcessor) TestUtils.getPropertyValue(chunkHandler, "chunkProcessor");
    assertNotNull("ChunkProcessor must not be null", chunkProcessor);

    ItemWriter<String> itemWriter = (ItemWriter<String>) TestUtils.getPropertyValue(chunkProcessor, "itemWriter");
    assertNotNull("ChunkProcessor ItemWriter must not be null", itemWriter);
    assertTrue("Got wrong instance of ItemWriter", itemWriter instanceof Writer);
View Full Code Here


  public void testRemoteChunkingSlaveParserWithProcessorNotDefined() {
    ApplicationContext applicationContext =
        new ClassPathXmlApplicationContext("/org/springframework/batch/integration/config/xml/RemoteChunkingSlaveParserNoProcessorTests.xml");

    ChunkHandler chunkHandler = applicationContext.getBean(ChunkProcessorChunkHandler.class);
    ChunkProcessor chunkProcessor = (SimpleChunkProcessor) TestUtils.getPropertyValue(chunkHandler, "chunkProcessor");
    assertNotNull("ChunkProcessor must not be null", chunkProcessor);

    ItemProcessor<String, String> itemProcessor = (ItemProcessor<String, String>) TestUtils.getPropertyValue(chunkProcessor, "itemProcessor");
    assertNotNull("ChunkProcessor ItemWriter must not be null", itemProcessor);
    assertTrue("Got wrong instance of ItemProcessor", itemProcessor instanceof PassThroughItemProcessor);
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.step.item.ChunkProcessor

Copyright © 2018 www.massapicom. 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.