CardForm extends LinearLayout implements OnCardTypeChangedListener, OnFocusChangeListener, OnClickListener,
        OnEditorActionListener, TextWatcher { public MobileNumberEditText getMobileNumberEditText() { return mMobileNumber; } CardForm(Context context);  CardForm(Context context, AttributeSet attrs);  CardForm(Context context, AttributeSet attrs, int defStyleAttr); @TargetApi(VERSION_CODES.LOLLIPOP)  CardForm(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes); CardForm cardRequired(boolean required); CardForm expirationRequired(boolean required); CardForm cvvRequired(boolean required); CardForm cardholderName(@FieldStatus int cardHolderNameStatus); CardForm postalCodeRequired(boolean required); CardForm mobileNumberRequired(boolean required); CardForm actionLabel(String actionLabel); CardForm mobileNumberExplanation(String mobileNumberExplanation); CardForm maskCardNumber(boolean mask); CardForm maskCvv(boolean mask); CardForm saveCardCheckBoxVisible(boolean visible); CardForm saveCardCheckBoxChecked(boolean checked); void setup(AppCompatActivity activity); void setCardholderNameIcon(@DrawableRes int res); void setCardNumberIcon(@DrawableRes int res); void setPostalCodeIcon(@DrawableRes int res); void setMobileNumberIcon(@DrawableRes int res); void setOnCardFormValidListener(OnCardFormValidListener listener); void setOnCardFormSubmitListener(OnCardFormSubmitListener listener); void setOnFormFieldFocusedListener(OnCardFormFieldFocusedListener listener); void setOnCardTypeChangedListener(OnCardTypeChangedListener listener); void setEnabled(boolean enabled); boolean isValid(); void validate(); CardholderNameEditText getCardholderNameEditText(); CardEditText getCardEditText(); ExpirationDateEditText getExpirationDateEditText(); CvvEditText getCvvEditText(); PostalCodeEditText getPostalCodeEditText(); CountryCodeEditText getCountryCodeEditText(); MobileNumberEditText getMobileNumberEditText(); void setCardholderNameError(String errorMessage); void setCardNumberError(String errorMessage); void setExpirationError(String errorMessage); void setCvvError(String errorMessage); void setPostalCodeError(String errorMessage); void setCountryCodeError(String errorMessage); void setMobileNumberError(String errorMessage); void closeSoftKeyboard(); String getCardholderName(); String getCardNumber(); String getExpirationMonth(); String getExpirationYear(); String getCvv(); String getPostalCode(); String getCountryCode(); String getMobileNumber(); boolean isSaveCardCheckBoxChecked(); @Override void onCardTypeChanged(CardType cardType); @Override void onFocusChange(View v, boolean hasFocus); @Override void onClick(View v); @Override void afterTextChanged(Editable s); @Override boolean onEditorAction(TextView v, int actionId, KeyEvent event); @Override void beforeTextChanged(CharSequence s, int start, int count, int after); @Override void onTextChanged(CharSequence s, int start, int before, int count); static final int FIELD_DISABLED; static final int FIELD_OPTIONAL; static final int FIELD_REQUIRED; }
@Test public void getMobileNumberEditText() { assertEquals(mCardForm.findViewById(R.id.bt_card_form_mobile_number), mCardForm.getMobileNumberEditText()); }