0

I am writing a test to check all test names, but it looks for reflection in the wrong places

public void namingTestMethodTest(JavaClasses classes) {
        methods().that().areAnnotatedWith(Test.class)
                .should().haveNameNotStartingWith("test")
                .andShould().haveNameEndingWith("Test").check(classes);
}
fenixs
  • 1
  • 1
    Welcome to StackOverflow! Can you elaborate what you mean by "it looks for reflection in the wrong places"? If you get an error message, make sure to include it (see also [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask).) – Manfred Aug 10 '22 at 20:23
  • If you don't provide details, your issue will be flagged to be closed with [Needs details or clarity](https://meta.stackoverflow.com/a/417485). – Manfred Sep 09 '22 at 07:30

0 Answers0