Skip to content

Commit cb3900c

Browse files
committed
Add Rewrite recipes
1 parent cbd39ae commit cb3900c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

hello/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ application {
2525

2626
rewrite {
2727
activeRecipe('org.openrewrite.java.testing.assertj.JUnitToAssertj')
28+
activeRecipe("org.openrewrite.java.testing.assertj.Assertj")
29+
setExportDatatables(true)
2830
}
2931

3032
tasks.withType(Test).configureEach {
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package com.ak.app;
22

3-
import org.assertj.core.api.Assertions;
43
import org.junit.jupiter.api.Test;
54

5+
import static org.assertj.core.api.Assertions.assertThatNoException;
6+
67
class MainAppTest {
78
@Test
89
void main() {
9-
Assertions.assertThatNoException().isThrownBy(MainApp::main);
10+
assertThatNoException().isThrownBy(MainApp::main);
1011
}
1112
}

0 commit comments

Comments
 (0)