ValidatorParameterHelper { public Validator noParam() { return new NoParamValidator(); } ValidatorParameterHelper(TargetAnnotationHelper targetAnnotationHelper); Validator noParam(); OneParamValidator type(String qualifiedName); OneParamValidator extendsType(String qualifiedName); OneParamValidator extendsAnyOfTypes(String... types); OneParamValidator anyType(); OneParamValidator annotatedWith(Class<? extends Annotation> annotationClass); OneParamValidator primitiveOrWrapper(TypeKind primitive); OneParamValidator anyOfTypes(String... types); OneParamValidator param(ParameterRequirement parameterRequirement); InOrderParamValidator inOrder(); AnyOrderParamValidator anyOrder();  }
@Test public void noParam() throws Exception { ExecutableElement executableElement = createMethod(); ElementValidation valid = new ElementValidation("", executableElement); validator.noParam().validate(executableElement, valid); assertTrue(valid.isValid()); executableElement = createMethod(int.class); valid = new ElementValidation("", executableElement); validator.noParam().validate(executableElement, valid); assertFalse(valid.isValid()); }