Package org.springframework.batch.core.repository

Examples of org.springframework.batch.core.repository.ExecutionContextSerializer


    when(incrementerFactory.getIncrementer("ORACLE", tablePrefix + "JOB_SEQ")).thenReturn(new StubIncrementer());
    when(incrementerFactory.getIncrementer("ORACLE", tablePrefix + "JOB_EXECUTION_SEQ")).thenReturn(new StubIncrementer());
    when(incrementerFactory.getIncrementer("ORACLE", tablePrefix + "STEP_EXECUTION_SEQ")).thenReturn(new StubIncrementer());
    factory.setIncrementerFactory(incrementerFactory);

    ExecutionContextSerializer customSerializer = new DefaultExecutionContextSerializer();
    factory.setSerializer(customSerializer);

    factory.afterPropertiesSet();
    assertEquals(customSerializer, ReflectionTestUtils.getField(factory, "serializer"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.batch.core.repository.ExecutionContextSerializer

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.