File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
src/test/java/org/openrewrite/java/testing/testng Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 18
18
import org .junit .jupiter .api .Test ;
19
19
import org .openrewrite .DocumentExample ;
20
20
import org .openrewrite .java .JavaParser ;
21
- import org .openrewrite .java .TreeVisitingPrinter ;
22
21
import org .openrewrite .test .RecipeSpec ;
23
22
import org .openrewrite .test .RewriteTest ;
24
23
@@ -53,23 +52,16 @@ void test() {
53
52
}
54
53
""" ,
55
54
"""
56
- import org.assertj.core.api.Assertions;
57
-
58
55
import static org.assertj.core.api.Assertions.fail;
59
56
60
57
class Test {
61
58
void test() {
62
- Assertions. fail("foo");
59
+ fail("foo");
63
60
fail("foo", new IllegalStateException());
64
- Assertions. fail();
61
+ fail();
65
62
}
66
63
}
67
- """ ,
68
- spec -> spec .afterRecipe (cu -> {
69
- String s = TreeVisitingPrinter .printTree (cu );
70
- System .out .println (s );
71
- System .out .println (s );
72
- })
64
+ """
73
65
)
74
66
);
75
67
}
You can’t perform that action at this time.
0 commit comments