OpenExternalUrlAction extends Action { @NonNull @Override public ActionResult perform(@NonNull ActionArguments arguments) { Uri uri = UriUtils.parse(arguments.getValue().getString()); Logger.info("Opening URI: %s", uri); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); UAirship.getApplicationContext().startActivity(intent); return ActionResult.newResult(arguments.getValue()); }  @NonNull @Override ActionResult perform(@NonNull ActionArguments arguments); @Override boolean acceptsArguments(@NonNull ActionArguments arguments); @Override boolean shouldRunOnMainThread(); @NonNull
    static final String DEFAULT_REGISTRY_NAME; @NonNull
    static final String DEFAULT_REGISTRY_SHORT_NAME; }
@Test public void testPerform() throws MalformedURLException { ActionArguments args = ActionTestUtils.createArgs(Action.SITUATION_WEB_VIEW_INVOCATION, "http: ActionResult result = action.perform(args); assertEquals("Value should be the uri", "http: validateLastActivity("http: args = ActionTestUtils.createArgs(Action.SITUATION_WEB_VIEW_INVOCATION, "adfadfafdsaf adfa dsfadfsa example"); result = action.perform(args); assertEquals("Value should be the uri", "adfadfafdsaf adfa dsfadfsa example", result.getValue().getString()); validateLastActivity("adfadfafdsaf adfa dsfadfsa example"); }