Package org.springframework.batch.sample.domain.trade

Examples of org.springframework.batch.sample.domain.trade.CustomerCredit


    writer.close();
  }
 
  @Test
  public void testWrite() throws Exception {
    CustomerCredit credit = new CustomerCredit();
    credit.setCredit(new BigDecimal(1));
    credit.setName("testName");
   
    writer.setSeparator(";");
   
    output.write(Collections.singletonList("testName;1"));
    output.open(new ExecutionContext());
View Full Code Here


  private static final String CUSTOMER = "Jozef Mak";
  private static final BigDecimal CREDIT = new BigDecimal("0.1");

  @Override
  protected CustomerCredit expectedDomainObject() {
    CustomerCredit credit = new CustomerCredit();
    credit.setId(ID);
    credit.setCredit(CREDIT);
    credit.setName(CUSTOMER);
    return credit;
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.sample.domain.trade.CustomerCredit

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.