fix build warnings
This commit is contained in:
@@ -76,6 +76,20 @@ public class TaskExecutorPartitionHandlerTests {
|
||||
handler.afterPropertiesSet();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testConfiguration() throws Exception {
|
||||
handler = new TaskExecutorPartitionHandler();
|
||||
try {
|
||||
handler.afterPropertiesSet();
|
||||
fail("Expected IllegalStateException when no step is set");
|
||||
}
|
||||
catch (IllegalStateException e) {
|
||||
// expected
|
||||
String message = e.getMessage();
|
||||
assertEquals("Wrong message: " + message, "A Step must be provided.", message);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNullStep() throws Exception {
|
||||
handler = new TaskExecutorPartitionHandler();
|
||||
|
||||
@@ -28,6 +28,7 @@ public class XStreamExecutionContextStringSerializerTests extends AbstractExecut
|
||||
|
||||
@Before
|
||||
public void onSetUp() throws Exception {
|
||||
@SuppressWarnings("deprecation")
|
||||
XStreamExecutionContextStringSerializer serializerDeserializer = new XStreamExecutionContextStringSerializer();
|
||||
(serializerDeserializer).afterPropertiesSet();
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ public class StepBuilderTests {
|
||||
StepExecution execution = jobRepository.createJobExecution("foo", new JobParameters()).createStepExecution("step");
|
||||
jobRepository.add(execution);
|
||||
PlatformTransactionManager transactionManager = new ResourcelessTransactionManager();
|
||||
SimpleStepBuilder builder = new StepBuilder("step")
|
||||
SimpleStepBuilder<Object, Object> builder = new StepBuilder("step")
|
||||
.repository(jobRepository)
|
||||
.transactionManager(transactionManager)
|
||||
.chunk(5)
|
||||
@@ -137,7 +137,7 @@ public class StepBuilderTests {
|
||||
StepExecution execution = jobRepository.createJobExecution("foo", new JobParameters()).createStepExecution("step");
|
||||
jobRepository.add(execution);
|
||||
PlatformTransactionManager transactionManager = new ResourcelessTransactionManager();
|
||||
SimpleStepBuilder builder = new StepBuilder("step")
|
||||
SimpleStepBuilder<Object, Object> builder = new StepBuilder("step")
|
||||
.repository(jobRepository)
|
||||
.transactionManager(transactionManager)
|
||||
.chunk(5)
|
||||
|
||||
Reference in New Issue
Block a user