Examples of PassThroughLineMapper


Examples of org.springframework.batch.item.file.mapping.PassThroughLineMapper

   * Setup the tested reader to read from the test resources.
   */
  @Before
  public void setUp() throws Exception {

    itemReader.setLineMapper(new PassThroughLineMapper());

    tested.setDelegate(itemReader);
    tested.setComparator(new Comparator<Resource>() {
            @Override
      public int compare(Resource o1, Resource o2) {
View Full Code Here

Examples of org.springframework.batch.item.file.mapping.PassThroughLineMapper

  @Before
  public void setUp() {

    reader.setResource(getInputResource("testLine1\ntestLine2\ntestLine3\ntestLine4\ntestLine5\ntestLine6"));
    reader.setLineMapper(new PassThroughLineMapper());

    itemReader.setResource(getInputResource("testLine1\ntestLine2\ntestLine3\ntestLine4\ntestLine5\ntestLine6"));
    itemReader.setLineMapper(new ItemLineMapper());
  }
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.