Commit MetaInfo

Revision0eed3c5b080c9b1b014b9c34034f31f5c122c85c (tree)
Time2020-06-30 21:36:02
AuthorAng Iongchun <ang@iong...>
CommiterAng Iongchun

Log Message

upgrade dependency and fix test

Change Summary

Incremental Difference

diff -r 673a7d6f12fb -r 0eed3c5b080c app/build.gradle
--- a/app/build.gradle Mon Jun 29 22:11:04 2020 +0800
+++ b/app/build.gradle Tue Jun 30 20:36:02 2020 +0800
@@ -40,7 +40,7 @@
4040
4141 dependencies {
4242 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', {
4444 exclude group: 'com.android.support', module: 'support-annotations'
4545 })
4646 api 'androidx.appcompat:appcompat:1.1.0'
@@ -48,9 +48,9 @@
4848 api 'androidx.vectordrawable:vectordrawable:1.1.0'
4949 implementation 'com.google.android.material:material:1.1.0'
5050 implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
51- api 'org.pcollections:pcollections:2.1.2'
51+ api 'org.pcollections:pcollections:3.1.3'
5252 api 'net.sf.supercsv:super-csv:2.4.0'
53- testImplementation 'junit:junit:4.12'
53+ testImplementation 'junit:junit:4.13'
5454 testImplementation 'org.mockito:mockito-core:2.28.2'
5555 // AndroidJUnitRunner and JUnit Rules
5656 androidTestImplementation 'androidx.test.ext:junit:1.1.1'
diff -r 673a7d6f12fb -r 0eed3c5b080c app/src/androidTest/java/tw/iongchun/taigikbd/ExampleInstrumentedTest.java
--- a/app/src/androidTest/java/tw/iongchun/taigikbd/ExampleInstrumentedTest.java Mon Jun 29 22:11:04 2020 +0800
+++ b/app/src/androidTest/java/tw/iongchun/taigikbd/ExampleInstrumentedTest.java Tue Jun 30 20:36:02 2020 +0800
@@ -37,7 +37,7 @@
3737 @Test
3838 public void useAppContext() throws Exception {
3939 // Context of the app under test.
40- Context appContext = InstrumentationRegistry.getTargetContext();
40+ Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
4141
4242 String myPackage = "tw.iongchun.taigikbd";
4343 assertEquals(myPackage, appContext.getPackageName().substring(0, myPackage.length()));
Show on old repository browser