@Test public void testClear() throws Exception { BCPay.clear(); Assert.assertEquals(null, BCPay.mContextActivity); Assert.assertEquals(null, BCPay.payCallback); }
public static void clear() { mContextActivity = null; payCallback = null; }
BCPay { public static void clear() { mContextActivity = null; payCallback = null; } }
BCPay { public static void clear() { mContextActivity = null; payCallback = null; } private  BCPay(); }
BCPay { public static void clear() { mContextActivity = null; payCallback = null; } private  BCPay(); synchronized static BCPay getInstance(Context context); static String initWechatPay(Context context, String wechatAppID); static void clear(); static void detachWechat(); static void detachBaiduPay(); static boolean isWXPaySupported(); static boolean isWXAppInstalledAndSupported(); void reqPaymentAsync(final PayParams payParam, final BCCallback callback); void reqWXPaymentAsync(final String billTitle, final Integer billTotalFee,
                                  final String billNum,
                                  final Map<String, String> optional, final BCCallback callback); void reqAliPaymentAsync(final String billTitle, final Integer billTotalFee,
                                   final String billNum,
                                   final Map<String, String> optional,
                                   final BCCallback callback); void reqUnionPaymentAsync(final String billTitle, final Integer billTotalFee,
                                     final String billNum,
                                     final Map<String, String> optional,
                                     final BCCallback callback); void reqBaiduPaymentAsync(final String billTitle, final Integer billTotalFee,
                                     final String billNum,
                                     final Map<String, String> optional,
                                     final BCCallback callback); @Deprecated void reqAliInlineQRCodeAsync(final String billTitle, final Integer billTotalFee,
                                        final String billNum, final Map<String, String> optional,
                                        final String returnUrl,
                                        final String qrPayMode,
                                        final BCCallback callback); void reqBCNativeAsync(final String billTitle, final Integer billTotalFee,
                                 final String billNum, final Map<String, String> optional,
                                 final Boolean genQRCode, final Integer qrCodeWidth,
                                 final BCCallback callback); void prefund(final RefundParams params, final BCCallback callback); void sendSmsCode(final String phone, final BCCallback callback); void subscribe(final BCSubscription params, final String smsId, final String smsCode,
                          final String couponCode, final BCCallback callback); void cancelSubscription(final String sid, final BCCallback callback); }
BCPay { public static void clear() { mContextActivity = null; payCallback = null; } private  BCPay(); synchronized static BCPay getInstance(Context context); static String initWechatPay(Context context, String wechatAppID); static void clear(); static void detachWechat(); static void detachBaiduPay(); static boolean isWXPaySupported(); static boolean isWXAppInstalledAndSupported(); void reqPaymentAsync(final PayParams payParam, final BCCallback callback); void reqWXPaymentAsync(final String billTitle, final Integer billTotalFee,
                                  final String billNum,
                                  final Map<String, String> optional, final BCCallback callback); void reqAliPaymentAsync(final String billTitle, final Integer billTotalFee,
                                   final String billNum,
                                   final Map<String, String> optional,
                                   final BCCallback callback); void reqUnionPaymentAsync(final String billTitle, final Integer billTotalFee,
                                     final String billNum,
                                     final Map<String, String> optional,
                                     final BCCallback callback); void reqBaiduPaymentAsync(final String billTitle, final Integer billTotalFee,
                                     final String billNum,
                                     final Map<String, String> optional,
                                     final BCCallback callback); @Deprecated void reqAliInlineQRCodeAsync(final String billTitle, final Integer billTotalFee,
                                        final String billNum, final Map<String, String> optional,
                                        final String returnUrl,
                                        final String qrPayMode,
                                        final BCCallback callback); void reqBCNativeAsync(final String billTitle, final Integer billTotalFee,
                                 final String billNum, final Map<String, String> optional,
                                 final Boolean genQRCode, final Integer qrCodeWidth,
                                 final BCCallback callback); void prefund(final RefundParams params, final BCCallback callback); void sendSmsCode(final String phone, final BCCallback callback); void subscribe(final BCSubscription params, final String smsId, final String smsCode,
                          final String couponCode, final BCCallback callback); void cancelSubscription(final String sid, final BCCallback callback);  }