WalletAction extends OpenExternalUrlAction { @Override public boolean acceptsArguments(@NonNull ActionArguments arguments) { if (UAirship.shared().getPlatformType() != UAirship.ANDROID_PLATFORM) { return false; } if (Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) { return false; } return super.acceptsArguments(arguments); }  @Override boolean acceptsArguments(@NonNull ActionArguments arguments); @NonNull
    static final String DEFAULT_REGISTRY_NAME; @NonNull
    static final String DEFAULT_REGISTRY_SHORT_NAME; }
@Test @Config(sdk = 18) public void testRejectsPreKitkat() { assertFalse(action.acceptsArguments(testArgs)); }
@Test public void testAcceptsKitKat() { assertTrue(action.acceptsArguments(testArgs)); }
@Test public void testRejectsAdmPlatfrom() { TestApplication.getApplication().setPlatform(UAirship.AMAZON_PLATFORM); assertFalse(action.acceptsArguments(testArgs)); }
@Test public void testUrlAllowList() { testArgs = ActionTestUtils.createArgs(Action.SITUATION_MANUAL_INVOCATION, "https: assertFalse(action.acceptsArguments(ActionTestUtils.createArgs(Action.SITUATION_MANUAL_INVOCATION, "https: }