From 1495054c6397f22aae06f1fdc4c44a79db8eb4b2 Mon Sep 17 00:00:00 2001 From: JiglioNero Date: Thu, 23 Nov 2023 16:02:28 +0100 Subject: [PATCH] fix tests --- .../install/session/InstallStatusReceiverTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);