File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/androidTest/java/com/artifex/mupdf/fitz Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ android {
2525dependencies {
2626// implementation fileTree(include: ['*.jar'], dir: 'libs')
2727 implementation ' androidx.appcompat:appcompat:1.0.0'
28- testImplementation ' junit:junit:4.12 '
28+ testImplementation ' junit:junit:4.13.2 '
2929 androidTestImplementation(' androidx.test.espresso:espresso-core:3.1.0' , {
3030 exclude group : ' com.android.support' , module : ' support-annotations'
3131 })
Original file line number Diff line number Diff line change 22
33import android .content .Context ;
44import androidx .test .platform .app .InstrumentationRegistry ;
5- import androidx .test .ext . junit . runners .AndroidJUnit4 ;
5+ import androidx .test .runner .AndroidJUnit4 ;
66
77import org .junit .Test ;
88import org .junit .runner .RunWith ;
@@ -19,7 +19,7 @@ public class ExampleInstrumentedTest {
1919 @ Test
2020 public void useAppContext () throws Exception {
2121 // Context of the app under test.
22- Context appContext = InstrumentationRegistry .getTargetContext ();
22+ Context appContext = InstrumentationRegistry .getInstrumentation (). getContext ();
2323
2424 assertEquals ("com.artifex.mupdf.fitz.test" , appContext .getPackageName ());
2525 }
You can’t perform that action at this time.
0 commit comments