1 parent cbd39ae commit cb3900cCopy full SHA for cb3900c
2 files changed
hello/build.gradle
@@ -25,6 +25,8 @@ application {
25
26
rewrite {
27
activeRecipe('org.openrewrite.java.testing.assertj.JUnitToAssertj')
28
+ activeRecipe("org.openrewrite.java.testing.assertj.Assertj")
29
+ setExportDatatables(true)
30
}
31
32
tasks.withType(Test).configureEach {
hello/src/test/java/com/ak/app/MainAppTest.java
@@ -1,11 +1,12 @@
1
package com.ak.app;
2
3
-import org.assertj.core.api.Assertions;
4
import org.junit.jupiter.api.Test;
5
+import static org.assertj.core.api.Assertions.assertThatNoException;
6
+
7
class MainAppTest {
8
@Test
9
void main() {
- Assertions.assertThatNoException().isThrownBy(MainApp::main);
10
+ assertThatNoException().isThrownBy(MainApp::main);
11
12
0 commit comments