Class org.mozilla.fenix.utils.ChangeAppLauncherIconTest
Tests
Test |
Duration |
Result |
WHEN reset to default and user has alternative icon set THEN changeAppLauncherIcon resets states to default config |
0.057s |
passed |
WHEN reset to default and user has default icon set THEN changeAppLauncherIcon makes no changes |
0.052s |
passed |
WHEN should reset to default icon and getPinnedShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state |
0.062s |
passed |
WHEN should reset to default icon and updateShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state |
0.056s |
passed |
WHEN should use alternative icon and getPinnedShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state |
0.055s |
passed |
WHEN should use alternative icon and updateShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state |
0.057s |
passed |
WHEN use alternative and user has alternative icon already set THEN changeAppLauncherIcon makes no changes |
0.236s |
passed |
WHEN use alternative icon and user has default icon set THEN changeAppLauncherIcon updates states to alternative config |
0.198s |
passed |
Standard output
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
I [ChangeAppLauncherIcon] Successfully attempted to update the app icon to the alternative.
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
I [ChangeAppLauncherIcon] Successfully attempted to reset the app icon to default.
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
W [ChangeAppLauncherIcon] Failed to retrieve the current Firefox pinned shortcuts
W [ChangeAppLauncherIcon] Failed to attempt to reset the app icon.
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
W [ChangeAppLauncherIcon] Failed to update the given Firefox shortcuts: []
W [ChangeAppLauncherIcon] Failed to attempt to reset the app icon.
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
W [ChangeAppLauncherIcon] Failed to retrieve the current Firefox pinned shortcuts
W [ChangeAppLauncherIcon] Failed to attempt to update the app icon.
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
W [ChangeAppLauncherIcon] Failed to update the given Firefox shortcuts: []
W [ChangeAppLauncherIcon] Failed to attempt to update the app icon.
W/OverlayConfig: partition_order.xml does not exist.
W/PackageParser: Unknown element under <manifest>: queries at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #77
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #478
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #566
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #575
W/PackageParser: Unknown element under <service>: property at /builds/worker/checkouts/gecko/mobile/android/fenix/app/build/intermediates/apk_for_local_test/fenixDebugUnitTest/packageFenixDebugUnitTestForUnitTest/apk-for-local-test.ap_ Binary XML file line #584
Standard error
java.lang.IllegalStateException
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.updateShortcutsComponentName(ChangeAppLauncherIcon.kt:135)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.resetAppIconsToDefault(ChangeAppLauncherIcon.kt:92)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.changeAppLauncherIcon(ChangeAppLauncherIcon.kt:40)
at org.mozilla.fenix.utils.ChangeAppLauncherIconTest.WHEN should reset to default icon and getPinnedShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state(ChangeAppLauncherIconTest.kt:141)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:502)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:285)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:104)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
java.lang.IllegalArgumentException
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.updateShortcutsComponentName(ChangeAppLauncherIcon.kt:145)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.resetAppIconsToDefault(ChangeAppLauncherIcon.kt:92)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.changeAppLauncherIcon(ChangeAppLauncherIcon.kt:40)
at org.mozilla.fenix.utils.ChangeAppLauncherIconTest.WHEN should reset to default icon and updateShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state(ChangeAppLauncherIconTest.kt:178)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:502)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:285)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:104)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
java.lang.IllegalStateException
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.updateShortcutsComponentName(ChangeAppLauncherIcon.kt:135)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.setAppIconsToAlternative(ChangeAppLauncherIcon.kt:73)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.changeAppLauncherIcon(ChangeAppLauncherIcon.kt:45)
at org.mozilla.fenix.utils.ChangeAppLauncherIconTest.WHEN should use alternative icon and getPinnedShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state(ChangeAppLauncherIconTest.kt:300)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:502)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:285)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:104)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
java.lang.IllegalArgumentException
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.updateShortcutsComponentName(ChangeAppLauncherIcon.kt:145)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.setAppIconsToAlternative(ChangeAppLauncherIcon.kt:73)
at org.mozilla.fenix.utils.ChangeAppLauncherIconKt.changeAppLauncherIcon(ChangeAppLauncherIcon.kt:45)
at org.mozilla.fenix.utils.ChangeAppLauncherIconTest.WHEN should use alternative icon and updateShortcuts throws THEN changeAppLauncherIcon makes no changes to shortcuts and components are the original state(ChangeAppLauncherIconTest.kt:337)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.robolectric.RobolectricTestRunner$HelperTestRunner$1.evaluate(RobolectricTestRunner.java:502)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$2(SandboxTestRunner.java:285)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:104)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)