diff --git a/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/AttributeTest.java b/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/AttributeTest.java index a69968ae19f..2b7d4c82756 100644 --- a/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/AttributeTest.java +++ b/rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/AttributeTest.java @@ -25,21 +25,21 @@ class AttributeTest implements RewriteTest { @Test void attribute() { rewriteRun( - groovy("new User('Bob').@name == 'Bob'") + groovy("new User('Bob').@name") ); } @Test void attributeInClosure() { rewriteRun( - groovy("[new User('Bob')].find { it.@name == 'Bob' }") + groovy("[new User('Bob')].collect { it.@name }") ); } @Test void attributeWithParentheses() { rewriteRun( - groovy("(new User('Bob').@name) == 'Bob'") + groovy("(new User('Bob').@name)") ); } }