Dear Experts,
DexOpener is not working for Android 8 and below. It would be nice to review “Using DexOpener” title in Chapter 9 - Testing Persistence Layer.
The Dexmaker github page has a note “Note that this library will only work with Android 9+”. Perhaps you can add this information in addition to the Dexmaker reference in Chapter 9.
How to Reproduce Issue:
When you try to run final project on an emulator Android 8 or below, you’ll get this error :
java.lang.NullPointerException: Attempt to invoke interface method 'boolean org.mockito.plugins.MockMaker$TypeMockability.mockable()' on a null object reference
at org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:23)
at org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:250)
at org.mockito.internal.creation.MockSettingsImpl.build(MockSettingsImpl.java:232)
at org.mockito.internal.MockitoCore.mock(MockitoCore.java:61)
Thanks in advance
Have a nice day.