Codota Logo
MockAccountBuilder.migrated
Code IndexAdd Codota to your IDE (free)

How to use
migrated
method
in
org.killbill.billing.mock.MockAccountBuilder

Best Java code snippets using org.killbill.billing.mock.MockAccountBuilder.migrated (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: killbill/killbill

public AccountData initAccountData(final Clock clock) {
  final AccountData accountData = new MockAccountBuilder().name(UUIDs.randomUUID().toString().substring(1, 8))
                              .firstNameLength(6)
                              .email(UUIDs.randomUUID().toString().substring(1, 8))
                              .phone(UUIDs.randomUUID().toString().substring(1, 8))
                              .migrated(false)
                              .externalKey(UUIDs.randomUUID().toString())
                              .billingCycleDayLocal(1)
                              .currency(Currency.USD)
                              .paymentMethodId(UUIDs.randomUUID())
                              .referenceTime(clock.getUTCNow())
                              .timeZone(DateTimeZone.forID("Europe/Paris"))
                              .build();
  assertNotNull(accountData);
  return accountData;
}
origin: killbill/killbill

Assert.assertEquals(history1.getLocale(), createdAccount.getLocale());
final AccountData accountData = new MockAccountBuilder(new DefaultAccount(account)).migrated(false)
                                          .locale("FR-CA")
                                          .build();
origin: killbill/killbill

this.firstNameLength(data.getFirstNameLength());
this.locale(data.getLocale());
this.migrated(data.isMigrated());
this.name(data.getName());
this.paymentMethodId(data.getPaymentMethodId());
origin: org.kill-bill.billing/killbill-entitlement

protected AccountData getAccountData(final int billingDay) {
  return new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                  .firstNameLength(6)
                  .email(UUID.randomUUID().toString().substring(1, 8))
                  .phone(UUID.randomUUID().toString().substring(1, 8))
                  .migrated(false)
                  .externalKey(UUID.randomUUID().toString().substring(1, 8))
                  .billingCycleDayLocal(billingDay)
                  .currency(Currency.USD)
                  .paymentMethodId(UUID.randomUUID())
                  .referenceTime(clock.getUTCNow())
                  .timeZone(DateTimeZone.UTC)
                  .build();
}
origin: org.kill-bill.billing/killbill-beatrix

protected AccountData getAccountData(@Nullable final Integer billingDay, final DateTimeZone tz) {
  final MockAccountBuilder builder = new MockAccountBuilder()
      .name(UUID.randomUUID().toString().substring(1, 8))
      .firstNameLength(6)
      .email(UUID.randomUUID().toString().substring(1, 8))
      .phone(UUID.randomUUID().toString().substring(1, 8))
      .migrated(false)
      .externalKey(UUID.randomUUID().toString().substring(1, 8))
      .currency(Currency.USD)
      .referenceTime(clock.getUTCNow())
      .timeZone(tz);
  if (billingDay != null) {
    builder.billingCycleDayLocal(billingDay);
  }
  return builder.build();
}
origin: org.kill-bill.billing/killbill-beatrix

protected AccountData getChildAccountData(final int billingDay, final UUID parentAccountId, final boolean isPaymentDelegatedToParent) {
  return new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                  .firstNameLength(6)
                  .email(UUID.randomUUID().toString().substring(1, 8))
                  .phone(UUID.randomUUID().toString().substring(1, 8))
                  .migrated(false)
                  .externalKey(UUID.randomUUID().toString().substring(1, 8))
                  .billingCycleDayLocal(billingDay)
                  .currency(Currency.USD)
                  .paymentMethodId(UUID.randomUUID())
                  .referenceTime(clock.getUTCNow())
                  .timeZone(DateTimeZone.UTC)
                  .parentAccountId(parentAccountId)
                  .isPaymentDelegatedToParent(isPaymentDelegatedToParent)
                  .build();
}
origin: org.kill-bill.billing/killbill-invoice

@BeforeClass(groups = "fast")
protected void beforeClass() throws Exception {
  if (hasFailed()) {
    return;
  }
  super.beforeClass();
  final Clock clock = new DefaultClock();
  this.account = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                      .firstNameLength(6)
                      .email(UUID.randomUUID().toString().substring(1, 8))
                      .phone(UUID.randomUUID().toString().substring(1, 8))
                      .migrated(false)
                      .externalKey(UUID.randomUUID().toString().substring(1, 8))
                      .billingCycleDayLocal(31)
                      .currency(Currency.USD)
                      .paymentMethodId(UUID.randomUUID())
                      .timeZone(DateTimeZone.UTC)
                      .build();
}
origin: org.kill-bill.billing/killbill-subscription

public AccountData initAccountData(final Clock clock) {
  final AccountData accountData = new MockAccountBuilder().name(UUIDs.randomUUID().toString().substring(1, 8))
                              .firstNameLength(6)
                              .email(UUIDs.randomUUID().toString().substring(1, 8))
                              .phone(UUIDs.randomUUID().toString().substring(1, 8))
                              .migrated(false)
                              .externalKey(UUIDs.randomUUID().toString())
                              .billingCycleDayLocal(1)
                              .currency(Currency.USD)
                              .paymentMethodId(UUIDs.randomUUID())
                              .referenceTime(clock.getUTCNow())
                              .timeZone(DateTimeZone.forID("Europe/Paris"))
                              .build();
  assertNotNull(accountData);
  return accountData;
}
origin: org.kill-bill.billing/killbill-invoice

public Account createAccount(final CallContext callContext) throws AccountApiException {
  final Account accountData = new MockAccountBuilder().name(UUID.randomUUID().toString().substring(1, 8))
                            .firstNameLength(6)
                            .email(UUID.randomUUID().toString().substring(1, 8))
                            .phone(UUID.randomUUID().toString().substring(1, 8))
                            .migrated(false)
                            .externalKey(UUID.randomUUID().toString().substring(1, 8))
                            .billingCycleDayLocal(31)
                            .currency(accountCurrency)
                            .paymentMethodId(UUID.randomUUID())
                            .timeZone(DateTimeZone.UTC)
                            .createdDate(clock.getUTCNow())
                            .build();
  final MutableCallContext mutableCallContext = new MutableCallContext(internalCallContext);
  final Account account;
  if (isFastTest()) {
    account = GuicyKillbillTestSuiteNoDB.createMockAccount(accountData, accountUserApi, accountApi, immutableAccountApi, nonEntityDao, clock, internalCallContextFactory, mutableCallContext, internalCallContext);
  } else {
    account = accountUserApi.createAccount(accountData, callContext);
  }
  GuicyKillbillTestSuite.refreshCallContext(account.getId(), clock, internalCallContextFactory, mutableCallContext, internalCallContext);
  return account;
}
origin: org.kill-bill.billing/killbill-beatrix

.email(UUID.randomUUID().toString().substring(1, 8))
.phone(UUID.randomUUID().toString().substring(1, 8))
.migrated(false)
.externalKey(UUID.randomUUID().toString().substring(1, 8))
.billingCycleDayLocal(1)
origin: org.kill-bill.billing/killbill-beatrix

.email(UUID.randomUUID().toString().substring(1, 8))
.phone(UUID.randomUUID().toString().substring(1, 8))
.migrated(false)
.externalKey(UUID.randomUUID().toString().substring(1, 8))
.billingCycleDayLocal(1)
origin: org.kill-bill.billing/killbill-beatrix

.email(UUID.randomUUID().toString().substring(1, 8))
.phone(UUID.randomUUID().toString().substring(1, 8))
.migrated(false)
.externalKey(UUID.randomUUID().toString().substring(1, 8))
.billingCycleDayLocal(1)
origin: org.kill-bill.billing/killbill-beatrix

.email(UUID.randomUUID().toString().substring(1, 8))
.phone(UUID.randomUUID().toString().substring(1, 8))
.migrated(false)
.externalKey(UUID.randomUUID().toString().substring(1, 8))
.billingCycleDayLocal(1)
origin: org.kill-bill.billing/killbill-util

this.firstNameLength(data.getFirstNameLength());
this.locale(data.getLocale());
this.migrated(data.isMigrated());
this.name(data.getName());
this.paymentMethodId(data.getPaymentMethodId());
org.killbill.billing.mockMockAccountBuildermigrated

Popular methods of MockAccountBuilder

  • <init>
  • build
  • paymentMethodId
  • billingCycleDayLocal
  • currency
  • email
  • externalKey
  • firstNameLength
  • name
  • phone
  • timeZone
  • referenceTime
  • timeZone,
  • referenceTime,
  • createdDate,
  • isPaymentDelegatedToParent,
  • locale,
  • parentAccountId,
  • address1,
  • address2,
  • city

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now