DisallowedMethodCheck extends AbstractMethodDetection { public void setClassName(String className) { this.className = className; }  void setClassName(String className); void setMethodName(String methodName); void setArgumentTypes(String argumentTypes); void setAllOverloads(boolean allOverloads);  }
@Test void empty_method_name() { DisallowedMethodCheck disallowedMethodCheck = new DisallowedMethodCheck(); disallowedMethodCheck.setClassName("A"); JavaCheckVerifier.newVerifier() .onFile(testSourcesPath("checks/DisallowedMethodCheck/empty_method_name.java")) .withCheck(disallowedMethodCheck) .verifyNoIssues(); }