Skip to content

Commit 7a8fa9c

Browse files
committed
polish
1 parent ed05e19 commit 7a8fa9c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/java/org/openrewrite/java/testing/junit5/UpdateTestAnnotation.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,11 @@ public J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, Ex
7373

7474
String[] assertionShims = {
7575
"package org.junit.jupiter.api.function;" +
76-
"public interface Executable {" +
77-
" void execute() throws Throwable;" +
78-
"}",
76+
"public interface Executable {void execute() throws Throwable;}",
7977
"package org.junit.jupiter.api;" +
8078
"import org.junit.jupiter.api.function.Executable;" +
8179
"public class Assertions {" +
82-
" public static <T extends Throwable> T assertThrows(Class<T> expectedType, Executable executable) {" +
83-
" return null;" +
84-
" }" +
80+
" public static <T extends Throwable> T assertThrows(Class<T> expectedType, Executable executable) {return null;}" +
8581
" public static void assertDoesNotThrow(Executable executable) {}" +
8682
"}"
8783
};

0 commit comments

Comments
 (0)