File tree 2 files changed +6
-8
lines changed
main/java/org/openrewrite/java/testing/cleanup
test/java/org/openrewrite/java/testing/cleanup
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ void assertTrueBefore(String message) {
40
40
}
41
41
42
42
@ AfterTemplate
43
- // This annotation does not get taken into account
44
- // resulting in Assertions.fail(message) being outputted
45
43
@ UseImportPolicy (value = STATIC_IMPORT_ALWAYS )
46
44
void after (String message ) {
47
45
fail (message );
Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ void test() {
52
52
}
53
53
""" ,
54
54
"""
55
- import org.junit.jupiter.api.Assertions;
55
+ import static org.junit.jupiter.api.Assertions.fail ;
56
56
57
57
public class Test {
58
58
void test() {
59
- Assertions. fail("assert false true");
60
- Assertions. fail("assert true false");
59
+ fail("assert false true");
60
+ fail("assert true false");
61
61
}
62
62
}
63
63
"""
@@ -82,12 +82,12 @@ void test() {
82
82
}
83
83
""" ,
84
84
"""
85
- import org.junit.jupiter.api.Assertions;
85
+ import static org.junit.jupiter.api.Assertions.fail ;
86
86
87
87
public class Test {
88
88
void test() {
89
- Assertions. fail("assert false true");
90
- Assertions. fail("assert true false");
89
+ fail("assert false true");
90
+ fail("assert true false");
91
91
}
92
92
}
93
93
"""
You can’t perform that action at this time.
0 commit comments