Skip to content

Commit

Permalink
Updated espresso and test support library (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
poisdeux authored and SyncedSynapse committed Apr 18, 2018
1 parent bff69e1 commit 1d6f9c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,10 @@ dependencies {
compile 'at.blogc:expandabletextview:1.0.3'
compile 'com.sothree.slidinguppanel:library:3.3.1'

androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test:runner:1.0.1'
androidTestCompile 'com.android.support.test:rules:1.0.1'
androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile 'com.android.support.test.espresso:espresso-idling-resource:2.2.2'
androidTestCompile 'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestCompile "com.android.support:support-v13:${supportLibVersion}"
instrumentationTestCompile 'junit:junit:4.12'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.test.espresso.Espresso;
import android.support.test.espresso.IdlingRegistry;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.support.v7.app.AppCompatActivity;
Expand Down Expand Up @@ -125,7 +125,7 @@ public void setUp() throws Throwable {
configureHostInfo(hostInfo);

loaderIdlingResource = new LoaderIdlingResource(activityTestRule.getActivity().getSupportLoaderManager());
Espresso.registerIdlingResources(loaderIdlingResource);
IdlingRegistry.getInstance().register(loaderIdlingResource);

Utils.disableAnimations(context);

Expand All @@ -142,7 +142,7 @@ public void setUp() throws Throwable {
@After
public void tearDown() throws Exception {
if ( loaderIdlingResource != null )
Espresso.unregisterIdlingResources(loaderIdlingResource);
IdlingRegistry.getInstance().unregister(loaderIdlingResource);

applicationHandler.reset();
playerHandler.reset();
Expand Down

0 comments on commit 1d6f9c2

Please sign in to comment.