Update test to handle new exception message.

This commit is contained in:
Glenn Renfro
2022-06-14 12:31:36 -04:00
parent 7a3f0c70c9
commit 4bd7cbff8a

View File

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