Skip to content

Commit c8cb0fb

Browse files
committed
Add a none empty test case to SemanticallyEqualTest.Generics
1 parent a49c4d0 commit c8cb0fb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

rewrite-java-test/src/test/java/org/openrewrite/java/search/SemanticallyEqualTest.java

+13
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,19 @@ class T {
301301

302302
@Nested
303303
class Generics {
304+
@Test
305+
void noneEmpty() {
306+
assertExpressionsEqual(
307+
"""
308+
import java.util.List;
309+
class T {
310+
List<String> a = new java.util.ArrayList<String>();
311+
List<String> b = new java.util.ArrayList<String>();
312+
}
313+
"""
314+
);
315+
}
316+
304317
@Test
305318
void firstEmpty() {
306319
assertExpressionsEqual(

0 commit comments

Comments
 (0)