Skip to content

Commit 0f7fc95

Browse files
committed
Explicitly remove org.junit.jupiter.api.Assertions.fail import
1 parent cf80960 commit 0f7fc95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/openrewrite/java/testing/assertj/JUnitFailToAssertJFail.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
149149
);
150150
//Make sure there is a static import for "org.assertj.core.api.Assertions.assertThat" (even if not referenced)
151151
maybeAddImport("org.assertj.core.api.Assertions", "fail", false);
152+
maybeRemoveImport("org.junit.jupiter.api.Assertions.fail");
152153
return super.visitMethodInvocation(method, ctx);
153154
}
154155
}

0 commit comments

Comments
 (0)