diff --git a/sdk/appcenter-distribute/src/test/java/com/microsoft/appcenter/distribute/install/session/InstallStatusReceiverTest.java b/sdk/appcenter-distribute/src/test/java/com/microsoft/appcenter/distribute/install/session/InstallStatusReceiverTest.java index cf461e8ca..d9f3c2bb2 100644 --- a/sdk/appcenter-distribute/src/test/java/com/microsoft/appcenter/distribute/install/session/InstallStatusReceiverTest.java +++ b/sdk/appcenter-distribute/src/test/java/com/microsoft/appcenter/distribute/install/session/InstallStatusReceiverTest.java @@ -217,7 +217,7 @@ public void installerReceiverFilter() throws Exception { } @Test - public void createIntentSenderOnAndroidS() { + public void createIntentSenderOnAndroidS() throws NoSuchFieldException, IllegalAccessException { /* Mock SDK_INT to S. */ Whitebox.setInternalState(Build.VERSION.class, "SDK_INT", Build.VERSION_CODES.S); @@ -225,14 +225,14 @@ public void createIntentSenderOnAndroidS() { } @Test - public void createIntentSenderOnAndroidLowS() { + public void createIntentSenderOnAndroidLowS() throws NoSuchFieldException, IllegalAccessException { /* Mock SDK_INT to M. */ Whitebox.setInternalState(Build.VERSION.class, "SDK_INT", Build.VERSION_CODES.M); createIntentSender(0); } - private void createIntentSender(int expectedFlag) { + private void createIntentSender(int expectedFlag) throws NoSuchFieldException, IllegalAccessException { mockStatic(PendingIntent.class); PendingIntent intent = mock(PendingIntent.class); IntentSender sender = mock(IntentSender.class);