Reduce naming collisions in consecutive tests

This commit is contained in:
Henning Poettker
2021-02-20 20:50:33 +01:00
committed by Mahmoud Ben Hassine
parent 792278d073
commit 0ad68037b6
23 changed files with 62 additions and 117 deletions

View File

@@ -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();

View File

@@ -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());
}