From 4bd7cbff8aea22c6a397b6fc7a1919b428ebf3f0 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Tue, 14 Jun 2022 12:31:36 -0400 Subject: [PATCH] Update test to handle new exception message. --- .../cloud/task/SimpleTaskAutoConfigurationTests.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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); }