Merge pull request #37492 from izeye

* pr/37492:
  Fix wrong mocking

Closes gh-37492
2.7.x
Moritz Halbritter 1 year ago
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…
Cancel
Save