mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Merge pull request #37492 from izeye
* pr/37492: Fix wrong mocking Closes gh-37492
This commit is contained in:
commit
a3f51e0f6f
@ -72,7 +72,7 @@ class PlatformPlaceholderDatabaseDriverResolverTests {
|
||||
@Test
|
||||
void resolveAllWithDataSourceWhenValueDoesNotContainPlaceholderShouldNotInteractWithDataSource() {
|
||||
DataSource dataSource = mock(DataSource.class);
|
||||
new PlatformPlaceholderDatabaseDriverResolver().resolveAll(mock(DataSource.class), "schema.sql");
|
||||
new PlatformPlaceholderDatabaseDriverResolver().resolveAll(dataSource, "schema.sql");
|
||||
then(dataSource).shouldHaveNoInteractions();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user