Skip to content

Commit c4a2745

Browse files
committed
Fix assertion message on testWithCheckConfigLocationFileDoesNotExists
See gh-1020
1 parent 7659f8a commit c4a2745

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mybatis-spring-boot-autoconfigure/src/test/java/org/mybatis/spring/boot/autoconfigure/MybatisAutoConfigurationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2015-2022 the original author or authors.
2+
* Copyright 2015-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -308,7 +308,8 @@ void testWithCheckConfigLocationFileDoesNotExists() {
308308
this.contextRunner.withUserConfiguration(EmbeddedDataSourceConfiguration.class)
309309
.withPropertyValues("mybatis.config-location:foo.xml", "mybatis.check-config-location=true")
310310
.run(context -> assertThat(context).getFailure().isInstanceOf(BeanCreationException.class)
311-
.hasMessageContainingAll("Error creating bean with name 'mybatisAutoConfiguration':",
311+
.hasMessageContainingAll(
312+
"Error creating bean with name 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration':",
312313
"Cannot find config location: class path resource [foo.xml] (please add config file or check your Mybatis configuration)"));
313314
}
314315

0 commit comments

Comments
 (0)