Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.braintreepayments.api
import android.content.res.Resources.NotFoundException
import androidx.test.core.app.ApplicationProvider
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import com.braintreepayments.api.GraphQLQueryHelper.getQuery
import com.braintreepayments.api.GraphQLQueryHelper2.getQuery
import org.junit.Test
import org.junit.runner.RunWith

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import android.content.res.Resources
import java.io.IOException
import java.io.InputStream

internal object GraphQLQueryHelper {
internal object GraphQLQueryHelper2 {
@JvmStatic
@Throws(Resources.NotFoundException::class, IOException::class)
fun getQuery(context: Context, queryResource: Int): String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void onAuthorizationResult(@Nullable Authorization authorization, @Nullab
.integration(braintreeClient.getIntegrationType())
.build());

base.put(GraphQLConstants.Keys.QUERY, GraphQLQueryHelper.getQuery(
base.put(GraphQLConstants.Keys.QUERY, GraphQLQueryHelper2.getQuery(
context, R.raw.delete_payment_method_mutation));
input.put(SINGLE_USE_TOKEN_ID, paymentMethodNonce.getString());
variables.put(INPUT, input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.ArgumentMatchers.isNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.never;
Expand Down Expand Up @@ -379,7 +378,7 @@ public void deletePaymentMethodNonce_postToGraphQL()

JSONObject graphQlRequest = captor.getValue();

String expectedGraphQLQuery = GraphQLQueryHelper.getQuery(
String expectedGraphQLQuery = GraphQLQueryHelper2.getQuery(
ApplicationProvider.getApplicationContext(), R.raw.delete_payment_method_mutation);
assertEquals(expectedGraphQLQuery, graphQlRequest.getString(GraphQLConstants.Keys.QUERY));

Expand Down