Reputation: 11
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);
}
Upvotes: 1
Views: 251