@Test public void checkErrorResourcesMathStrings() { assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_NOT_EMPTY), is(R.string.validation_error_empty)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_LENGTH_MIN), is(R.string.validation_error_min_length)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_LENGTH_MAX), is(R.string.validation_error_max_length)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_LENGTH_RANGE), is(R.string.validation_error_range_length)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_LENGTH_EXACT), is(R.string.validation_error_exact_length)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_EMAIL), is(R.string.validation_error_email)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_PHONE), is(R.string.validation_error_phone)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_USERNAME), is(R.string.validation_error_username)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_PASSWORD), is(R.string.validation_error_password)); assertThat(mField.getErrorRes(ValiFi.Builder.ERROR_RES_YEARS_OLDER_THAN), is(R.string.validation_error_older_than_years)); }
static int getErrorRes(@Builder.ValiFiErrorResource int field) { return getInstance().mParameters.mErrorResources[field]; }
ValiFi { static int getErrorRes(@Builder.ValiFiErrorResource int field) { return getInstance().mParameters.mErrorResources[field]; } }
ValiFi { static int getErrorRes(@Builder.ValiFiErrorResource int field) { return getInstance().mParameters.mErrorResources[field]; } private  ValiFi(@Nullable Context appContext, @NonNull ValiFiConfig config); }
ValiFi { static int getErrorRes(@Builder.ValiFiErrorResource int field) { return getInstance().mParameters.mErrorResources[field]; } private  ValiFi(@Nullable Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext); @RestrictTo(TESTS) static void install(); @RestrictTo(TESTS) static void install(@NonNull ValiFiConfig config); static void destroyFields(ValiFiValidable... fields); @NonNull static Set<ValiFiCardType> getCreditCardTypes(); }
ValiFi { static int getErrorRes(@Builder.ValiFiErrorResource int field) { return getInstance().mParameters.mErrorResources[field]; } private  ValiFi(@Nullable Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext); @RestrictTo(TESTS) static void install(); @RestrictTo(TESTS) static void install(@NonNull ValiFiConfig config); static void destroyFields(ValiFiValidable... fields); @NonNull static Set<ValiFiCardType> getCreditCardTypes();  }