Skip to content

Commit

Permalink
Merge pull request #1030 from kazuki43zoo/gh-1020
Browse files Browse the repository at this point in the history
Fix assertion message on testWithCheckConfigLocationFileDoesNotExists
  • Loading branch information
kazuki43zoo authored Nov 24, 2024
2 parents 7659f8a + c4a2745 commit 8f53a1c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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)"));
}

Expand Down

0 comments on commit 8f53a1c

Please sign in to comment.