private AccountData getAccountData(final Integer bcd, final Currency currency, final String externalKey) { final AccountData secondAccountData = Mockito.mock(AccountData.class); Mockito.when(secondAccountData.getExternalKey()).thenReturn(externalKey); Mockito.when(secondAccountData.getEmail()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getName()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getFirstNameLength()).thenReturn(Integer.MAX_VALUE); Mockito.when(secondAccountData.getCurrency()).thenReturn(currency); Mockito.when(secondAccountData.getBillCycleDayLocal()).thenReturn(bcd); Mockito.when(secondAccountData.getPaymentMethodId()).thenReturn(UUID.randomUUID()); Mockito.when(secondAccountData.getTimeZone()).thenReturn(DateTimeZone.forID("EST")); Mockito.when(secondAccountData.getLocale()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getAddress1()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getAddress2()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getCompanyName()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getCity()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getStateOrProvince()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getCountry()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getPostalCode()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.getPhone()).thenReturn(UUID.randomUUID().toString()); Mockito.when(secondAccountData.isMigrated()).thenReturn(false); return secondAccountData; }
public AccountModelDao(final UUID id, @Nullable final DateTime createdDate, @Nullable final DateTime updatedDate, final AccountData account, final boolean withDefaults) { this(id, createdDate, updatedDate, account.getExternalKey(), account.getEmail(), account.getName(), account.getFirstNameLength(), account.getCurrency(), account.getParentAccountId(), account.isPaymentDelegatedToParent(), MoreObjects.firstNonNull(account.getBillCycleDayLocal(), DEFAULT_BILLING_CYCLE_DAY_LOCAL), account.getPaymentMethodId(), account.getReferenceTime() != null ? account.getReferenceTime() : createdDate, account.getTimeZone(), account.getLocale(), account.getAddress1(), account.getAddress2(), account.getCompanyName(), account.getCity(), account.getStateOrProvince(), account.getCountry(), account.getPostalCode(), account.getPhone(), account.getNotes(), account.isMigrated(), withDefaults); }
data.getStateOrProvince(), data.getCountry(), data.getPostalCode(), data.getPhone(), data.getNotes(),
public DefaultMutableAccountData(final AccountData accountData) { this.externalKey = accountData.getExternalKey(); this.email = accountData.getEmail(); this.name = accountData.getName(); this.firstNameLength = accountData.getFirstNameLength(); this.currency = accountData.getCurrency(); this.parentAccountId = accountData.getParentAccountId(); this.isPaymentDelegatedToParent = accountData.isPaymentDelegatedToParent(); this.billCycleDayLocal = accountData.getBillCycleDayLocal() == null ? DEFAULT_BILLING_CYCLE_DAY_LOCAL : accountData.getBillCycleDayLocal(); this.paymentMethodId = accountData.getPaymentMethodId(); this.referenceTime = accountData.getReferenceTime(); this.timeZone = accountData.getTimeZone(); this.locale = accountData.getLocale(); this.address1 = accountData.getAddress1(); this.address2 = accountData.getAddress2(); this.companyName = accountData.getCompanyName(); this.city = accountData.getCity(); this.stateOrProvince = accountData.getStateOrProvince(); this.country = accountData.getCountry(); this.postalCode = accountData.getPostalCode(); this.phone = accountData.getPhone(); this.notes = accountData.getNotes(); this.isMigrated = accountData.isMigrated(); }
this.phone(data.getPhone()); this.notes(data.getNotes()); this.postalCode(data.getPostalCode()); this.stateOrProvince(data.getStateOrProvince()); this.referenceTime(data.getReferenceTime());
public AccountModelDao(final UUID id, @Nullable final DateTime createdDate, @Nullable final DateTime updatedDate, final AccountData account, final boolean withDefaults) { this(id, createdDate, updatedDate, account.getExternalKey(), account.getEmail(), account.getName(), account.getFirstNameLength(), account.getCurrency(), account.getParentAccountId(), account.isPaymentDelegatedToParent(), MoreObjects.firstNonNull(account.getBillCycleDayLocal(), DEFAULT_BILLING_CYCLE_DAY_LOCAL), account.getPaymentMethodId(), account.getReferenceTime() != null ? account.getReferenceTime() : createdDate, account.getTimeZone(), account.getLocale(), account.getAddress1(), account.getAddress2(), account.getCompanyName(), account.getCity(), account.getStateOrProvince(), account.getCountry(), account.getPostalCode(), account.getPhone(), account.getNotes(), account.isMigrated(), withDefaults); }
public DefaultMutableAccountData(final AccountData accountData) { this.externalKey = accountData.getExternalKey(); this.email = accountData.getEmail(); this.name = accountData.getName(); this.firstNameLength = accountData.getFirstNameLength(); this.currency = accountData.getCurrency(); this.parentAccountId = accountData.getParentAccountId(); this.isPaymentDelegatedToParent = accountData.isPaymentDelegatedToParent(); this.billCycleDayLocal = accountData.getBillCycleDayLocal() == null ? DEFAULT_BILLING_CYCLE_DAY_LOCAL : accountData.getBillCycleDayLocal(); this.paymentMethodId = accountData.getPaymentMethodId(); this.referenceTime = accountData.getReferenceTime(); this.timeZone = accountData.getTimeZone(); this.locale = accountData.getLocale(); this.address1 = accountData.getAddress1(); this.address2 = accountData.getAddress2(); this.companyName = accountData.getCompanyName(); this.city = accountData.getCity(); this.stateOrProvince = accountData.getStateOrProvince(); this.country = accountData.getCountry(); this.postalCode = accountData.getPostalCode(); this.phone = accountData.getPhone(); this.notes = accountData.getNotes(); this.isMigrated = accountData.isMigrated(); }
data.getStateOrProvince(), data.getCountry(), data.getPostalCode(), data.getPhone(), data.getNotes(),
this.phone(data.getPhone()); this.notes(data.getNotes()); this.postalCode(data.getPostalCode()); this.stateOrProvince(data.getStateOrProvince()); this.referenceTime(data.getReferenceTime());