@Test public void testStart3DSecureActivitySkipsTitleIfNull() { Activity activity = mock(Activity.class); Intent intent = new Intent(); String testHtml = "html"; Gateway.start3DSecureActivity(activity, testHtml, null, intent); verify(activity).startActivityForResult(intent, Gateway.REQUEST_3D_SECURE); assertTrue(intent.hasExtra(Gateway3DSecureActivity.EXTRA_HTML)); assertFalse(intent.hasExtra(Gateway3DSecureActivity.EXTRA_TITLE)); assertEquals(testHtml, intent.getStringExtra(Gateway3DSecureActivity.EXTRA_HTML)); }
public static void start3DSecureActivity(Activity activity, String html) { start3DSecureActivity(activity, html, null); }
Gateway { public static void start3DSecureActivity(Activity activity, String html) { start3DSecureActivity(activity, html, null); } }
Gateway { public static void start3DSecureActivity(Activity activity, String html) { start3DSecureActivity(activity, html, null); } Gateway(); }
Gateway { public static void start3DSecureActivity(Activity activity, String html) { start3DSecureActivity(activity, html, null); } Gateway(); String getMerchantId(); Gateway setMerchantId(String merchantId); Region getRegion(); Gateway setRegion(Region region); void updateSession(String sessionId, String apiVersion, GatewayMap payload, GatewayCallback callback); Single<GatewayMap> updateSession(String sessionId, String apiVersion, GatewayMap payload); static void start3DSecureActivity(Activity activity, String html); static void start3DSecureActivity(Activity activity, String html, String title); static boolean handle3DSecureResult(int requestCode, int resultCode, Intent data, Gateway3DSecureCallback callback); static void requestGooglePayData(PaymentsClient paymentsClient, PaymentDataRequest request, Activity activity); static boolean handleGooglePayResult(int requestCode, int resultCode, Intent data, GatewayGooglePayCallback callback); }
Gateway { public static void start3DSecureActivity(Activity activity, String html) { start3DSecureActivity(activity, html, null); } Gateway(); String getMerchantId(); Gateway setMerchantId(String merchantId); Region getRegion(); Gateway setRegion(Region region); void updateSession(String sessionId, String apiVersion, GatewayMap payload, GatewayCallback callback); Single<GatewayMap> updateSession(String sessionId, String apiVersion, GatewayMap payload); static void start3DSecureActivity(Activity activity, String html); static void start3DSecureActivity(Activity activity, String html, String title); static boolean handle3DSecureResult(int requestCode, int resultCode, Intent data, Gateway3DSecureCallback callback); static void requestGooglePayData(PaymentsClient paymentsClient, PaymentDataRequest request, Activity activity); static boolean handleGooglePayResult(int requestCode, int resultCode, Intent data, GatewayGooglePayCallback callback);  }