Update versions and update code format
This commit is contained in:
@@ -58,4 +58,5 @@ public class JobConfiguration {
|
||||
}, transactionManager).build())
|
||||
.build();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,4 +30,5 @@ class BatchJobTestConfiguration {
|
||||
public PostgreSQLContainer<?> postgresSQLContainer() {
|
||||
return new PostgreSQLContainer(DockerImageName.parse("postgres:15.1"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,9 +21,8 @@ import org.springframework.boot.SpringApplication;
|
||||
public class TestBatchJobApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String[] myArgs = {"--spring.batch.jdbc.initialize-schema=always"};
|
||||
SpringApplication.from(BatchJobApplication::main).
|
||||
with(BatchJobTestConfiguration.class).
|
||||
run(myArgs);
|
||||
String[] myArgs = { "--spring.batch.jdbc.initialize-schema=always" };
|
||||
SpringApplication.from(BatchJobApplication::main).with(BatchJobTestConfiguration.class).run(myArgs);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user