use of org.androidannotations.ElementValidation in project androidannotations by androidannotations.
the class ValidatorParameterHelperTest method anyParam.
@Test
public void anyParam() throws Exception {
ExecutableElement executableElement = createMethod(String.class);
ElementValidation valid = new ElementValidation("", executableElement);
validator.anyType().validate(executableElement, valid);
assertTrue(valid.isValid());
}
use of org.androidannotations.ElementValidation in project androidannotations by androidannotations.
the class ValidatorParameterHelperTest method itemSelect.
@Test
public void itemSelect() {
ExecutableElement executableElement = createMethod(boolean.class, int.class);
ElementValidation valid = new ElementValidation("", executableElement);
//
validator.inOrder().primitiveOrWrapper(//
TypeKind.BOOLEAN).anyType().optional().validate(executableElement, valid);
assertTrue(valid.isValid());
}
Aggregations