DisallowedMethodCheck extends AbstractMethodDetection { public void setMethodName(String methodName) { this.methodName = methodName; }  void setClassName(String className); void setMethodName(String methodName); void setArgumentTypes(String argumentTypes); void setAllOverloads(boolean allOverloads);  }
@Test void empty_type_definition() { DisallowedMethodCheck disallowedMethodCheck = new DisallowedMethodCheck(); disallowedMethodCheck.setMethodName("bar"); JavaCheckVerifier.newVerifier() .onFile("src/test/files/checks/DisallowedMethodCheck/empty_type_definition.java") .withCheck(disallowedMethodCheck) .verifyIssues(); }