Utilize newBuilder instead of copy in unit test.

This commit is contained in:
Alex Hart
2025-03-18 15:19:07 -03:00
committed by Cody Henthorne
parent 1adcfd5abb
commit 5d4fec2e73

View File

@@ -568,15 +568,10 @@ class InAppPaymentRecurringContextJobTest {
state = state, state = state,
subscriberId = subscriberId, subscriberId = subscriberId,
endOfPeriod = null, endOfPeriod = null,
inAppPaymentData = iap.data.copy( inAppPaymentData = iap.data.newBuilder()
badge = badge, .badge(badge)
waitForAuth = null, .redemption(redemptionState)
stripeActionComplete = null, .build()
payPalActionComplete = null,
payPalRequiresAction = null,
stripeRequiresAction = null,
redemption = redemptionState
)
) )
return iap return iap