Fix wrong mocking

See gh-37492
2.7.x
Johnny Lim 1 year ago committed by Moritz Halbritter
parent 81efbc7a7b
commit b95092c621

@ -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