diff --git a/mybatis-spring-boot-autoconfigure/src/test/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfigurationTest.java b/mybatis-spring-boot-autoconfigure/src/test/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfigurationTest.java index 475db7892..5dc7aa335 100644 --- a/mybatis-spring-boot-autoconfigure/src/test/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfigurationTest.java +++ b/mybatis-spring-boot-autoconfigure/src/test/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfigurationTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2022 the original author or authors. + * Copyright 2015-2024 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. @@ -308,7 +308,8 @@ void testWithCheckConfigLocationFileDoesNotExists() { this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class) .withPropertyValues("mybatis.config-location:foo.xml", "mybatis.check-config-location=true") .run(context -> assertThat(context).getFailure().isInstanceOf(BeanCreationException.class) - .hasMessageContainingAll("Error creating bean with name 'mybatisAutoConfiguration':", + .hasMessageContainingAll( + "Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration':", "Cannot find config location: class path resource [foo.xml] (please add config file or check your Mybatis configuration)")); }