This rule is defined by the following XPath expression:
//ClassOrInterfaceBodyDeclaration[MethodDeclaration/MethodDeclarator[@Image='setUp']] [count(Annotation/MarkerAnnotation/Name[@Image='Before'])=0]
Example:
public class MyTest { public void setUp() { bad(); } } public class MyTest2 { @Before public void setUp() { good(); } }