From 0920cd5ee26e05620d1152111a4e48e48bd5efd8 Mon Sep 17 00:00:00 2001 From: lingenj Date: Thu, 19 Dec 2024 14:50:40 +0100 Subject: [PATCH] Improve AttributeTest --- .../java/org/openrewrite/groovy/tree/AttributeTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)") ); } }