Search in sources :

Example 1 with Clock

use of org.killbill.clock.Clock in project killbill by killbill.

the class TestDefaultInvoiceGenerator method beforeClass.

@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();
}
Also used : MockAccountBuilder(org.killbill.billing.mock.MockAccountBuilder) DefaultClock(org.killbill.clock.DefaultClock) DefaultClock(org.killbill.clock.DefaultClock) Clock(org.killbill.clock.Clock) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

MockAccountBuilder (org.killbill.billing.mock.MockAccountBuilder)1 Clock (org.killbill.clock.Clock)1 DefaultClock (org.killbill.clock.DefaultClock)1 BeforeClass (org.testng.annotations.BeforeClass)1