Reduce naming collisions in consecutive tests
This commit is contained in:
committed by
Mahmoud Ben Hassine
parent
792278d073
commit
0ad68037b6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018 the original author or authors.
|
||||
* Copyright 2018-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -85,6 +85,7 @@ public class JsonSupportIntegrationTests {
|
||||
public JsonFileItemWriter<Trade> itemWriter() {
|
||||
return new JsonFileItemWriterBuilder<Trade>()
|
||||
.resource(new FileSystemResource(OUTPUT_FILE_DIRECTORY + "trades.json"))
|
||||
.lineSeparator("\n")
|
||||
.jsonObjectMarshaller(new JacksonJsonObjectMarshaller<>())
|
||||
.name("tradesJsonFileItemWriter")
|
||||
.build();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2018 the original author or authors.
|
||||
* Copyright 2018-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -67,6 +67,7 @@ public abstract class RemotePartitioningJobFunctionalTests {
|
||||
this.embeddedDatabase = new EmbeddedDatabaseBuilder()
|
||||
.addScript("/org/springframework/batch/core/schema-drop-hsqldb.sql")
|
||||
.addScript("/org/springframework/batch/core/schema-hsqldb.sql")
|
||||
.generateUniqueName(true)
|
||||
.build();
|
||||
this.workerApplicationContext = new AnnotationConfigApplicationContext(getWorkerConfigurationClass());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user