Update test to handle new exception message.
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user