Skip to content

Commit

Permalink
Remove unnecessary call to disable keyguard in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkorth committed Nov 16, 2015
1 parent cebbb10 commit f9b11cd
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.braintreepayments.api;

import android.app.Activity;
import android.app.KeyguardManager;
import android.content.Context;
import android.os.SystemClock;
import android.support.test.espresso.web.webdriver.Locator;
import android.support.test.runner.AndroidJUnit4;
Expand All @@ -16,8 +14,8 @@
import com.braintreepayments.api.models.CardBuilder;
import com.braintreepayments.api.models.CardNonce;
import com.braintreepayments.api.models.PaymentMethodNonce;
import com.braintreepayments.testutils.BraintreeActivityTestRule;
import com.braintreepayments.api.test.TestActivity;
import com.braintreepayments.testutils.BraintreeActivityTestRule;
import com.braintreepayments.testutils.TestClientTokenBuilder;

import org.junit.Before;
Expand All @@ -27,7 +25,6 @@

import java.util.concurrent.CountDownLatch;

import static android.support.test.InstrumentationRegistry.getTargetContext;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.Espresso.pressBack;
import static android.support.test.espresso.action.ViewActions.click;
Expand Down Expand Up @@ -56,10 +53,6 @@ public class ThreeDSecureVerificationTest {

@Before
public void setUp() {
((KeyguardManager) getTargetContext().getSystemService(Context.KEYGUARD_SERVICE))
.newKeyguardLock("ThreeDSecureVerificationTest")
.disableKeyguard();

mActivity = mActivityTestRule.getActivity();
mCountDownLatch = new CountDownLatch(1);
}
Expand Down

0 comments on commit f9b11cd

Please sign in to comment.