Skip to content

Commit 7ba17bb

Browse files
committed
Maybe remove Assertions after assertThatExceptionOfType
1 parent bf76c7a commit 7ba17bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ && getCursor().getParentTreeCursor().getValue() instanceof J.Block) {
8787
);
8888
maybeAddImport("org.assertj.core.api.AssertionsForClassTypes", "assertThatExceptionOfType");
8989
maybeRemoveImport("org.junit.jupiter.api.Assertions.assertThrows");
90+
maybeRemoveImport("org.junit.jupiter.api.Assertions");
9091
}
9192
}
9293
return mi;

0 commit comments

Comments
 (0)