From a30583846f5ae701924d91399a9abf8876e1a16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Kr=C3=BCger?= Date: Wed, 9 Aug 2023 17:39:28 +0200 Subject: [PATCH] Fix test --- .../api/DependencyChangeResolverTest.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/DependencyChangeResolverTest.java b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/DependencyChangeResolverTest.java index 2057f966b..98eeb9a1b 100644 --- a/components/sbm-core/src/test/java/org/springframework/sbm/build/api/DependencyChangeResolverTest.java +++ b/components/sbm-core/src/test/java/org/springframework/sbm/build/api/DependencyChangeResolverTest.java @@ -118,7 +118,14 @@ public void givenBuildFile_addExistingTransitiveDependency_withHigherScope_expec when(buildFile.getEffectiveDependencies()) .thenReturn(Set.of(existingDependency)); - when(buildFile.getDeclaredDependencies(any())) + when(buildFile.getDeclaredDependencies( + None, + Compile, + Provided, + Runtime, + Test, + System + )) .thenReturn(Collections.emptyList()); Pair, Optional> pair = @@ -150,7 +157,14 @@ public void givenBuildFile_addExistingDirectDependency_withHigherScope_expectNoO when(buildFile.getEffectiveDependencies()) .thenReturn(Set.of(existingDependency)); - when(buildFile.getDeclaredDependencies(any())) + when(buildFile.getDeclaredDependencies( + None, + Compile, + Provided, + Runtime, + Test, + System + )) .thenReturn(List.of(existingDependency)); Pair, Optional> pair =