@@ -5,16 +5,16 @@ description: migrate test groovy files to java
55
66Migrate test Groovy files to Java using JUnit 5
77
8- 1 . List all groovy files of the current gradle module
9- 2 . convert groovy files to Java using Junit 5
10- 3 . make sure the tests are still passing after migration
11- 4 . remove groovy files
8+ 1 . List all Groovy files of the current Gradle module
9+ 2 . Convert Groovy files to Java using JUnit 5
10+ 3 . Make sure the tests are still passing after migration and that the test count has not changed
11+ 4 . Remove Groovy files
1212
13- When converting groovy code to java code make sure that:
14- - the Java code generated is compatible with JDK 8
15- - when translating Spock test , favor using ` @CsvSource ` with ` | ` delimiters
16- - when using a ` @MethodSource ` , use the test method name, and suffix it with ` _arguments `
17- - when converting tuples, create light dedicated structure instead to keep the typing system
13+ When converting Groovy code to Java code make sure that:
14+ - The Java code generated is compatible with JDK 8
15+ - When translating Spock tests , favor using ` @CsvSource ` with ` | ` delimiters
16+ - When using ` @MethodSource ` , use the test method name and suffix it with ` _arguments `
17+ - When converting tuples, create light dedicated structure instead to keep the typing system
1818- Instead of checking a state and throwing an exception, use JUnit asserts
19- - Do not wrap checked exception and throwing a Runtime exception, prefer adding a throws clause at method declaration
19+ - Do not wrap checked exception and throw a Runtime exception; prefer adding a throws clause at method declaration
2020- Do not mark local variables ` final `
0 commit comments