Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabapp2 committed Aug 9, 2023
1 parent 460e0d7 commit a305838
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<Dependency>, Optional<Dependency>> pair =
Expand Down Expand Up @@ -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<List<Dependency>, Optional<Dependency>> pair =
Expand Down

0 comments on commit a305838

Please sign in to comment.