From b95092c6211d4405e2745f717b79217b26031e91 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 20 Sep 2023 20:59:17 +0900 Subject: [PATCH] Fix wrong mocking See gh-37492 --- .../init/PlatformPlaceholderDatabaseDriverResolverTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/init/PlatformPlaceholderDatabaseDriverResolverTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/init/PlatformPlaceholderDatabaseDriverResolverTests.java index 3bd44b62b3..7d7e47db40 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/init/PlatformPlaceholderDatabaseDriverResolverTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/init/PlatformPlaceholderDatabaseDriverResolverTests.java @@ -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(); }