Revision | 0eed3c5b080c9b1b014b9c34034f31f5c122c85c (tree) |
---|---|
Time | 2020-06-30 21:36:02 |
Author | Ang Iongchun <ang@iong...> |
Commiter | Ang Iongchun |
upgrade dependency and fix test
@@ -40,7 +40,7 @@ | ||
40 | 40 | |
41 | 41 | dependencies { |
42 | 42 | api fileTree(include: ['*.jar'], dir: 'libs') |
43 | - androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { | |
43 | + androidTestImplementation('androidx.test.espresso:espresso-core:3.2.0', { | |
44 | 44 | exclude group: 'com.android.support', module: 'support-annotations' |
45 | 45 | }) |
46 | 46 | api 'androidx.appcompat:appcompat:1.1.0' |
@@ -48,9 +48,9 @@ | ||
48 | 48 | api 'androidx.vectordrawable:vectordrawable:1.1.0' |
49 | 49 | implementation 'com.google.android.material:material:1.1.0' |
50 | 50 | implementation 'androidx.constraintlayout:constraintlayout:1.1.3' |
51 | - api 'org.pcollections:pcollections:2.1.2' | |
51 | + api 'org.pcollections:pcollections:3.1.3' | |
52 | 52 | api 'net.sf.supercsv:super-csv:2.4.0' |
53 | - testImplementation 'junit:junit:4.12' | |
53 | + testImplementation 'junit:junit:4.13' | |
54 | 54 | testImplementation 'org.mockito:mockito-core:2.28.2' |
55 | 55 | // AndroidJUnitRunner and JUnit Rules |
56 | 56 | androidTestImplementation 'androidx.test.ext:junit:1.1.1' |
@@ -37,7 +37,7 @@ | ||
37 | 37 | @Test |
38 | 38 | public void useAppContext() throws Exception { |
39 | 39 | // Context of the app under test. |
40 | - Context appContext = InstrumentationRegistry.getTargetContext(); | |
40 | + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); | |
41 | 41 | |
42 | 42 | String myPackage = "tw.iongchun.taigikbd"; |
43 | 43 | assertEquals(myPackage, appContext.getPackageName().substring(0, myPackage.length())); |