I want to perform structural search on my tests to detect all methods that look like tests but are not annotated with @Test
.
I tried with this pattern with no success (no matching code found):
@$Annotation$ public void $method$()
$Annotation$ - text like: ^Test$, min occurs: 0, max occurs: 0
$method$ - text like: should|test, min occurs: 1, max occurs: 1
What am I doing wrong?