Package org.springframework.batch.item.file.mapping

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


    Address shipping = new Address();
    BillingInfo billingInfo = new BillingInfo();
    ShippingInfo shippingInfo = new ShippingInfo();
    LineItem item = new LineItem();

    @SuppressWarnings("rawtypes")
    FieldSetMapper mapper = mock(FieldSetMapper.class);
    when(mapper.mapFieldSet(headerFS)).thenReturn(order);
    when(mapper.mapFieldSet(customerFS)).thenReturn(customer);
    when(mapper.mapFieldSet(billingFS)).thenReturn(billing);
    when(mapper.mapFieldSet(shippingFS)).thenReturn(shipping);
    when(mapper.mapFieldSet(billingInfoFS)).thenReturn(billingInfo);
    when(mapper.mapFieldSet(shippingInfoFS)).thenReturn(shippingInfo);
    when(mapper.mapFieldSet(itemFS)).thenReturn(item);

    provider.setAddressMapper(mapper);
    provider.setBillingMapper(mapper);
    provider.setCustomerMapper(mapper);
    provider.setHeaderMapper(mapper);
View Full Code Here

TOP

Related Classes of org.springframework.batch.item.file.mapping.FieldSetMapper

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.