|
20 | 20 | import org.openrewrite.DataTable; |
21 | 21 | import org.openrewrite.Recipe; |
22 | 22 |
|
23 | | - public class FindUnitTestTable extends DataTable<FindUnitTestTable.Row> { |
24 | | - public FindUnitTestTable(Recipe recipe) { |
25 | | - super(recipe, |
26 | | - "Methods in unit tests", |
27 | | - "Method declarations used in unit tests"); |
28 | | - } |
29 | | - |
30 | | - @Value |
31 | | - public static class Row { |
32 | | - @Column(displayName = "Full method name", |
33 | | - description = "The fully qualified name of the method declaration") |
34 | | - String fullyQualifiedMethodName; |
35 | | - |
36 | | - @Column(displayName = "Method name", |
37 | | - description = "The name of the method declaration") |
38 | | - String methodName; |
39 | | - |
40 | | - @Column(displayName = "Method invocation", |
41 | | - description = "How the method declaration is used as method invocation in a unit test.") |
42 | | - String methodInvocationExample; |
43 | | - |
44 | | - @Column(displayName = "Name of test", |
45 | | - description = "The name of the unit test where the method declaration is used.") |
46 | | - String nameOfTest; |
47 | | - |
48 | | - @Column(displayName = "Location of test", |
49 | | - description = "The location of the unit test where the method declaration is used.") |
50 | | - String locationOfTest; |
51 | | - } |
52 | | - } |
53 | | - |
| 23 | +public class FindUnitTestTable extends DataTable<FindUnitTestTable.Row> { |
| 24 | + public FindUnitTestTable(Recipe recipe) { |
| 25 | + super(recipe, |
| 26 | + "Methods in unit tests", |
| 27 | + "Method declarations used in unit tests"); |
| 28 | + } |
| 29 | + |
| 30 | + @Value |
| 31 | + public static class Row { |
| 32 | + @Column(displayName = "Full method name", |
| 33 | + description = "The fully qualified name of the method declaration") |
| 34 | + String fullyQualifiedMethodName; |
| 35 | + |
| 36 | + @Column(displayName = "Method name", |
| 37 | + description = "The name of the method declaration") |
| 38 | + String methodName; |
| 39 | + |
| 40 | + @Column(displayName = "Method invocation", |
| 41 | + description = "How the method declaration is used as method invocation in a unit test.") |
| 42 | + String methodInvocationExample; |
| 43 | + |
| 44 | + @Column(displayName = "Name of test", |
| 45 | + description = "The name of the unit test where the method declaration is used.") |
| 46 | + String nameOfTest; |
| 47 | + |
| 48 | + @Column(displayName = "Location of test", |
| 49 | + description = "The location of the unit test where the method declaration is used.") |
| 50 | + String locationOfTest; |
| 51 | + } |
| 52 | +} |
0 commit comments