mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Always use the constructor to make Immutable Collection Builders
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135359669
This commit is contained in:
parent
79387f5d1e
commit
b65b855067
16 changed files with 29 additions and 32 deletions
|
@ -213,8 +213,8 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase<DomainCreateFlow,
|
|||
.setParent(historyEntry)
|
||||
.build();
|
||||
|
||||
ImmutableSet<BillingEvent> billingEvents = ImmutableSet.of(
|
||||
createBillingEvent, renewBillingEvent);
|
||||
ImmutableSet.Builder<BillingEvent> expectedBillingEvents =
|
||||
new ImmutableSet.Builder<BillingEvent>().add(createBillingEvent).add(renewBillingEvent);
|
||||
|
||||
// If EAP is applied, a billing event for EAP should be present.
|
||||
if (!eapFee.isZero()) {
|
||||
|
@ -229,12 +229,9 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase<DomainCreateFlow,
|
|||
.setFlags(billingFlags)
|
||||
.setParent(historyEntry)
|
||||
.build();
|
||||
billingEvents = ImmutableSet.<BillingEvent>builder()
|
||||
.addAll(billingEvents)
|
||||
.add(eapBillingEvent)
|
||||
.build();
|
||||
expectedBillingEvents.add(eapBillingEvent);
|
||||
}
|
||||
assertBillingEvents(billingEvents);
|
||||
assertBillingEvents(expectedBillingEvents.build());
|
||||
|
||||
assertGracePeriods(
|
||||
domain.getGracePeriods(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue