Updated to add metadata for Conditionals
Also renamed camel-cased properties to cononical format. resolves #442
This commit is contained in:
committed by
Janne Valkealahti
parent
c719f8b1f9
commit
d2c90c5256
@@ -43,7 +43,7 @@ public class TaskJobLauncherAutoConfigurationTests {
|
||||
@Test
|
||||
public void testAutoBuiltDataSourceWithTaskJobLauncherCLR() {
|
||||
this.contextRunner.
|
||||
withPropertyValues("spring.cloud.task.batch.failOnJobFailure=true").
|
||||
withPropertyValues("spring.cloud.task.batch.fail-on-job-failure=true").
|
||||
run(context -> {
|
||||
assertThat(context).hasSingleBean(TaskJobLauncherCommandLineRunner.class);
|
||||
assertThat(context).doesNotHaveBean(JobLauncherCommandLineRunner.class);
|
||||
@@ -56,7 +56,7 @@ public class TaskJobLauncherAutoConfigurationTests {
|
||||
@Test
|
||||
public void testAutoBuiltDataSourceWithTaskJobLauncherCLROrder() {
|
||||
this.contextRunner.
|
||||
withPropertyValues("spring.cloud.task.batch.failOnJobFailure=true",
|
||||
withPropertyValues("spring.cloud.task.batch.fail-on-job-failure=true",
|
||||
"spring.cloud.task.batch.commandLineRunnerOrder=100").
|
||||
run(context -> {
|
||||
assertThat(context.getBean(TaskJobLauncherCommandLineRunner.class)
|
||||
|
||||
@@ -65,7 +65,7 @@ public class TaskJobLauncherCommandLineRunnerTests {
|
||||
|
||||
@Test
|
||||
public void testTaskJobLauncherCLRSuccessFail() {
|
||||
String[] enabledArgs = new String[] { "--spring.cloud.task.batch.failOnJobFailure=true" };
|
||||
String[] enabledArgs = new String[] { "--spring.cloud.task.batch.fail-on-job-failure=true" };
|
||||
boolean isExceptionThrown = false;
|
||||
try {
|
||||
this.applicationContext = SpringApplication
|
||||
@@ -85,7 +85,7 @@ public class TaskJobLauncherCommandLineRunnerTests {
|
||||
@Test
|
||||
public void testTaskJobLauncherPickOneJob() {
|
||||
String[] enabledArgs = new String[] {
|
||||
"--spring.cloud.task.batch.failOnJobFailure=true",
|
||||
"--spring.cloud.task.batch.fail-on-job-failure=true",
|
||||
"--spring.cloud.task.batch.jobNames=jobSucceed" };
|
||||
boolean isExceptionThrown = false;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user