Skip to content

Commit 8bc8281

Browse files
timtebeeksteve-aom-elliott
authored andcommitted
Revert change to TestNgToAssertJTest
1 parent fd977e2 commit 8bc8281

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/test/java/org/openrewrite/java/testing/testng/TestNgToAssertJTest.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.junit.jupiter.api.Test;
1919
import org.openrewrite.DocumentExample;
2020
import org.openrewrite.java.JavaParser;
21-
import org.openrewrite.java.TreeVisitingPrinter;
2221
import org.openrewrite.test.RecipeSpec;
2322
import org.openrewrite.test.RewriteTest;
2423

@@ -53,23 +52,16 @@ void test() {
5352
}
5453
""",
5554
"""
56-
import org.assertj.core.api.Assertions;
57-
5855
import static org.assertj.core.api.Assertions.fail;
5956
6057
class Test {
6158
void test() {
62-
Assertions.fail("foo");
59+
fail("foo");
6360
fail("foo", new IllegalStateException());
64-
Assertions.fail();
61+
fail();
6562
}
6663
}
67-
""",
68-
spec -> spec.afterRecipe(cu -> {
69-
String s = TreeVisitingPrinter.printTree(cu);
70-
System.out.println(s);
71-
System.out.println(s);
72-
})
64+
"""
7365
)
7466
);
7567
}

0 commit comments

Comments
 (0)