@@ -43,11 +43,11 @@ class DoesNotIncludeDependencyTest implements RewriteTest {
4343 """ ;
4444
4545 private Recipe defaultRecipeWithOnlyDirectAndScope (@ Nullable Boolean onlyDirect , @ Nullable String scope ) {
46- return new DoesNotIncludeDependency ("org.springframework" , "spring-beans" , onlyDirect , scope , null );
46+ return new DoesNotIncludeDependency ("org.springframework" , "spring-beans" , null , onlyDirect , scope );
4747 }
4848
4949 private Recipe defaultRecipeWithOnlyDirectAndVersion (@ Nullable Boolean onlyDirect , @ Nullable String version ) {
50- return new DoesNotIncludeDependency ("org.springframework" , "spring-beans" , onlyDirect , null , version );
50+ return new DoesNotIncludeDependency ("org.springframework" , "spring-beans" , version , onlyDirect , null );
5151 }
5252
5353 private String wrappedScope (String scope ) {
@@ -58,7 +58,7 @@ private String wrappedScope(String scope) {
5858 @ Test
5959 void dependencyPresentTransitivelyWithoutScopeOrDesiredScopeSpecifiedButDirectOnlyMarked () {
6060 rewriteRun (
61- spec -> spec .recipe (new DoesNotIncludeDependency ("org.springframework" , "spring-beans" , true , null , null )),
61+ spec -> spec .recipe (new DoesNotIncludeDependency ("org.springframework" , "spring-beans" , null , true , null )),
6262 pomXml (
6363 """
6464 <project>
0 commit comments