-
Notifications
You must be signed in to change notification settings - Fork 480
Labels
enhancementNew feature or requestNew feature or request
Description
What version of OpenRewrite are you using?
I am using
- OpenRewrite v8.62.2 (latest in main)
What is the smallest, simplest way to reproduce the problem?
@Test
void searchWithContains() {
rewriteRun(
spec -> spec.recipe(new FindTags("/dependencies/dependency[contains(artifactId, 'abc')]")),
xml(
"""
<dependencies>
<dependency>
<artifactId>org.openrewrite</artifactId>
</dependency>
</dependencies>
""",
"""
<dependencies>
<!--~~>--><dependency>
<artifactId>org.openrewrite</artifactId>
</dependency>
</dependencies>
"""
)
);
}What did you expect to see?
Test fails since artifactId does not contain abc.
What did you see instead?
Test passes.
Are you interested in contributing a fix to OpenRewrite?
Yes
timtebeek
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done