@Test(expected = UnsupportedOperationException.class) public void testAddValidationForTextInputLayoutValidatorWithEditTextAndPatternThrowsException() { mSpiedAwesomeValidationTextInputLayoutStyle.addValidation(mock(EditText.class), PowerMockito.mock(Pattern.class), PowerMockito.mock(String.class)); }
public void addValidation(EditText editText, String regex, String errMsg) { checkIsNotTextInputLayoutValidator(); mValidator.set(editText, regex, errMsg); }
AwesomeValidation { public void addValidation(EditText editText, String regex, String errMsg) { checkIsNotTextInputLayoutValidator(); mValidator.set(editText, regex, errMsg); } }
AwesomeValidation { public void addValidation(EditText editText, String regex, String errMsg) { checkIsNotTextInputLayoutValidator(); mValidator.set(editText, regex, errMsg); } AwesomeValidation(ValidationStyle style); }
AwesomeValidation { public void addValidation(EditText editText, String regex, String errMsg) { checkIsNotTextInputLayoutValidator(); mValidator.set(editText, regex, errMsg); } AwesomeValidation(ValidationStyle style); static boolean isAutoFocusOnFirstFailureEnabled(); static void disableAutoFocusOnFirstFailure(); void setContext(Context context); void setColor(int color); void setUnderlabelColor(int colorValue); void setUnderlabelColorByResource(int colorResId); void setTextInputLayoutErrorTextAppearance(int styleId); void addValidation(EditText editText, String regex, String errMsg); void addValidation(TextInputLayout textInputLayout, String regex, String errMsg); void addValidation(Activity activity, int viewId, String regex, int errMsgId); void addValidation(EditText editText, Pattern pattern, String errMsg); void addValidation(TextInputLayout textInputLayout, Pattern pattern, String errMsg); void addValidation(Activity activity, int viewId, Pattern pattern, int errMsgId); void addValidation(EditText editText, Range range, String errMsg); void addValidation(TextInputLayout textInputLayout, Range range, String errMsg); void addValidation(Activity activity, int viewId, Range range, int errMsgId); void addValidation(EditText confirmationEditText, EditText editText, String errMsg); void addValidation(TextInputLayout confirmationTextInputLayout, TextInputLayout textInputLayout, String errMsg); void addValidation(Activity activity, int confirmationViewId, int viewId, int errMsgId); void addValidation(EditText editText, SimpleCustomValidation simpleCustomValidation, String errMsg); void addValidation(TextInputLayout textInputLayout, SimpleCustomValidation simpleCustomValidation, String errMsg); void addValidation(Activity activity, int viewId, SimpleCustomValidation simpleCustomValidation, int errMsgId); void addValidation(View view, CustomValidation customValidation, CustomValidationCallback customValidationCallback, CustomErrorReset customErrorReset, String errMsg); void addValidation(Activity activity, int viewId, CustomValidation customValidation, CustomValidationCallback customValidationCallback, CustomErrorReset customErrorReset, int errMsgId); boolean validate(); void clear(); }
AwesomeValidation { public void addValidation(EditText editText, String regex, String errMsg) { checkIsNotTextInputLayoutValidator(); mValidator.set(editText, regex, errMsg); } AwesomeValidation(ValidationStyle style); static boolean isAutoFocusOnFirstFailureEnabled(); static void disableAutoFocusOnFirstFailure(); void setContext(Context context); void setColor(int color); void setUnderlabelColor(int colorValue); void setUnderlabelColorByResource(int colorResId); void setTextInputLayoutErrorTextAppearance(int styleId); void addValidation(EditText editText, String regex, String errMsg); void addValidation(TextInputLayout textInputLayout, String regex, String errMsg); void addValidation(Activity activity, int viewId, String regex, int errMsgId); void addValidation(EditText editText, Pattern pattern, String errMsg); void addValidation(TextInputLayout textInputLayout, Pattern pattern, String errMsg); void addValidation(Activity activity, int viewId, Pattern pattern, int errMsgId); void addValidation(EditText editText, Range range, String errMsg); void addValidation(TextInputLayout textInputLayout, Range range, String errMsg); void addValidation(Activity activity, int viewId, Range range, int errMsgId); void addValidation(EditText confirmationEditText, EditText editText, String errMsg); void addValidation(TextInputLayout confirmationTextInputLayout, TextInputLayout textInputLayout, String errMsg); void addValidation(Activity activity, int confirmationViewId, int viewId, int errMsgId); void addValidation(EditText editText, SimpleCustomValidation simpleCustomValidation, String errMsg); void addValidation(TextInputLayout textInputLayout, SimpleCustomValidation simpleCustomValidation, String errMsg); void addValidation(Activity activity, int viewId, SimpleCustomValidation simpleCustomValidation, int errMsgId); void addValidation(View view, CustomValidation customValidation, CustomValidationCallback customValidationCallback, CustomErrorReset customErrorReset, String errMsg); void addValidation(Activity activity, int viewId, CustomValidation customValidation, CustomValidationCallback customValidationCallback, CustomErrorReset customErrorReset, int errMsgId); boolean validate(); void clear();  }