Skip to content

Commit

Permalink
Upgrade unit tests dependencies on android
Browse files Browse the repository at this point in the history
  • Loading branch information
swabbass committed Nov 29, 2021
1 parent 7fe8421 commit 3368cda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ dependencies {
testImplementation "org.robolectric:robolectric:4.7.2"
testImplementation 'org.assertj:assertj-core:3.11.1'
testImplementation 'org.mockito:mockito-core:4.0.0'
testImplementation 'com.squareup.assertj:assertj-android:1.2.0'
testImplementation 'org.mockito:mockito-inline:3.4.0'
testImplementation "org.mockito.kotlin:mockito-kotlin:4.0.0"
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlinVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import static org.mockito.Mockito.when;

public class ModalStackTest extends BaseTest {
Expand Down Expand Up @@ -152,7 +153,7 @@ public void run() {
uut.dismissModal(MODAL_ID_1, root, listener);
verify(onModalWillDismiss, times(0)).run();
verify(listener, times(1)).onError(anyString());
verifyNoInteractions(listener);
verifyNoMoreInteractions(listener);
}

@Test
Expand Down Expand Up @@ -188,7 +189,7 @@ public void onSuccess(String childId) {
});
uut.dismissAllModals(root, Options.EMPTY, listener);
verify(listener, times(1)).onSuccess(anyString());
verifyNoInteractions(listener);
verifyNoMoreInteractions(listener);
}

@Test
Expand Down
1 change: 1 addition & 0 deletions playground/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ org.gradle.jvmargs=-Xmx2048m
# org.gradle.parallel=true
android.useAndroidX=true
android.enableJetifier=true
android.jetifier.blacklist=bcprov

0 comments on commit 3368cda

Please sign in to comment.