Fix wrong mocking

See gh-37492
This commit is contained in:
Johnny Lim 2023-09-20 20:59:17 +09:00 committed by Moritz Halbritter
parent 81efbc7a7b
commit b95092c621
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}