diff --git a/spring-cloud-task-core/src/test/java/org/springframework/cloud/task/SimpleTaskAutoConfigurationTests.java b/spring-cloud-task-core/src/test/java/org/springframework/cloud/task/SimpleTaskAutoConfigurationTests.java index 382fbe7e..494b6200 100644 --- a/spring-cloud-task-core/src/test/java/org/springframework/cloud/task/SimpleTaskAutoConfigurationTests.java +++ b/spring-cloud-task-core/src/test/java/org/springframework/cloud/task/SimpleTaskAutoConfigurationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2021 the original author or authors. + * Copyright 2015-2022 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. @@ -146,9 +146,7 @@ public class SimpleTaskAutoConfigurationTests { verifyExceptionThrownDefaultExecutable(BeanCreationException.class, "Error creating bean " - + "with name 'simpleTaskAutoConfiguration': Invocation of init " - + "method failed; nested exception is java.lang.IllegalStateException:" - + " Expected one TaskConfigurer but found 2", + + "with name 'simpleTaskAutoConfiguration': Invocation of init method failed", applicationContextRunner); } @@ -162,10 +160,7 @@ public class SimpleTaskAutoConfigurationTests { verifyExceptionThrownDefaultExecutable(BeanCreationException.class, "Error creating bean " - + "with name 'simpleTaskAutoConfiguration': Invocation of init method " - + "failed; nested exception is java.lang.IllegalStateException: To use " - + "the default TaskConfigurer the context must contain no more than " - + "one DataSource, found 2", + + "with name 'simpleTaskAutoConfiguration': Invocation of init method failed", applicationContextRunner); }