Skip to content

Commit 4ab6051

Browse files
committed
add test for empty class
1 parent b2e0b82 commit 4ab6051

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEqualsTest.java

+15
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ class A {
6060
);
6161
}
6262

63+
@Test
64+
void noCostomMethodsNoAnnotation() {
65+
rewriteRun(// language=java
66+
java(
67+
"""
68+
class A {
69+
70+
int foo;
71+
72+
}
73+
"""
74+
)
75+
);
76+
}
77+
6378
@Test
6479
void replaceEqualsInPackage() {
6580
rewriteRun(// language=java

0 commit comments

Comments
 (0)